code: def get_loader(module_or_name):
      """Get a "loader" object for module_or_name
  
      Returns None if the module cannot be found or imported.
      If the named module is not already imported, its containing package
      (if any) is imported, in order to establish the package __path__.
      """
      warnings._deprecated(
          "pkgutil.get_loader",
          f"{warnings._DEPRECATED_MSG}; "
          "use importlib.util.find_spec() instead",
          remove=(3, 14),
      )
      if module_or_name in sys.modules:
          module_or_name = sys.modules[module_or_name]
          if module_or_name is None:
              return None
      if isinstance(module_or_name, ModuleType):
          module = module_or_name
          loader = getattr(module, "__loader__", None)
          if loader is not None:
              return loader
          if getattr(module, "__spec__", None) is None:
              return None
          fullname = module.__name__
      else:
          fullname = module_or_name
      return find_loader(fullname)
  
imports: from collections import namedtuple
  from functools import singledispatch
  import importlib
  import importlib.util
  import importlib.machinery
  import os
  import os.path
  import sys
  from types import ModuleType
  import warnings
label_desc: Use image node_id 8 for calling a global function with example usage: get_loader(module_or_name) and returns: find_loader, None, loader, None