def _get_module_name(function):
module_name = function.__module__<EOL>if module_name == '<STR_LIT:__main__>':<EOL><INDENT>main_module = inspect.getmodule(function)<EOL>if hasattr(main_module, '<STR_LIT>'):<EOL><INDENT>module_name = os.path.splitext(os.path.basename(main_module.__file__))[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return module_name<EOL>
Gets the function's module name
Resolves the __main__ module to an actual module name
Returns:
    str: the function's module name