code: def _import_module_from_h2ogpt(file_name: str) -> ModuleType:
      h2ogpt_dir = Path(__file__).parent.parent.parent
      file_path = (h2ogpt_dir / file_name).absolute()
      module_name = file_path.stem
  
      LOGGER.info(f"Loading module '{module_name}' from '{file_path}'.")
      spec = importlib.util.spec_from_file_location(
          module_name, file_path
      )
      if not spec:
          raise Exception(
              f"Couldn't load module '{module_name}' from '{file_path}'."
          )
      module = importlib.util.module_from_spec(spec)
      sys.modules[module_name] = module
      spec.loader.exec_module(module)  # type: ignore
      return module
  
file_path: h2ogpt/client/tests/conftest.py
imports: import importlib.util
  import logging
  import os
  import sys
  from pathlib import Path
  from types import ModuleType
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: _import_module_from_h2ogpt(file_name) and returns: module