code: def get_module_object_and_name(globals_dict):
    
    name = globals_dict.get('__name__', None)
    module = sys.modules.get(name, None)
    # Pick a more informative name for the main module.
    return _ModuleObjectAndName(module,
                                (sys.argv[0] if name == '__main__' else name))
docs: Returns the module that defines a global environment, and its name.
  
    Args:
      globals_dict: A dictionary that should correspond to an environment
        providing the values of the globals.
  
    Returns:
      _ModuleObjectAndName - pair of module object & module name.
      Returns (None, None) if the module could not be identified.