code: def _load_py_module(name: str, location: str) -> ModuleType:
      spec = spec_from_file_location(name, location)
      assert spec, f"Failed to load module {name} from {location}"
      py = module_from_spec(spec)
      assert (
          spec.loader
      ), f"ModuleSpec.loader is None for {name} from {location}"
      spec.loader.exec_module(py)
      return py
  
file_path: pytorch-lightning/src/lightning_app/__setup__.py
imports: import glob
  import os
  from importlib.util import module_from_spec, spec_from_file_location
  from pathlib import Path
  from types import ModuleType
  from typing import Any, Dict
  from setuptools import find_packages
label_desc: Use image node_id 1 for calling a global function with example usage: _load_py_module(name, location) and returns: py