Obtain the type information for method with specified index.
a method index
a UnionInfo
the FunctionInfo, free it with g_base_info_unref when done.
g_base_info_unref