code: def load_module(name, path):
      """Load module from .py/.pyc file.
  
      Parameters
      ----------
      name : str
          Name of the module.
      path : str
          Path to .py/.pyc file.
  
      Returns
      -------
      mod : module
          Imported module.
  
      """
      from importlib.util import (
          module_from_spec,
          spec_from_file_location,
      )
  
      spec = spec_from_file_location(name, path)
      mod = module_from_spec(spec)
      spec.loader.exec_module(mod)
      return mod
  
file_path: mne-python/mne/commands/utils.py
imports: import glob
  import importlib
  import os
  import os.path
  import sys
  from optparse import OptionParser
  import mne
label_desc: Use image node_id 2 for calling a global function with example usage: load_module(name, path) and returns: mod