code: def _load_py_module(fname, pkg="flash"):
      spec = spec_from_file_location(
          os.path.join(pkg, fname),
          os.path.join(_PATH_ROOT, "src", pkg, fname),
      )
      py = module_from_spec(spec)
      spec.loader.exec_module(py)
      return py
  
file_path: lightning-flash/docs/source/conf.py
imports: import glob
  import os
  import shutil
  import sys
  import warnings
  from importlib.util import module_from_spec, spec_from_file_location
  import pt_lightning_sphinx_theme
label_desc: Use image node_id 1 for calling a global function with example usage: _load_py_module(fname, pkg) and returns: py