code: def module_from_file(module_name, file_path):
      app_dir = os.path.dirname(file_path)
      sys.path.insert(0, app_dir)
      unload_module("lib")
  
      spec = importlib.util.spec_from_file_location(
          module_name, file_path
      )
      module = importlib.util.module_from_spec(spec)
      spec.loader.exec_module(module)
  
      sys.path.remove(app_dir)
      logger.debug(f"module: {module}")
      return module
  
imports: import glob
  import importlib.util
  import inspect
  import logging
  import os
  import sys
  from distutils.util import strtobool
  from typing import List
  from monailabel.interfaces.exception import MONAILabelError, MONAILabelException
label_desc: Use image node_id 2 for calling a global function with example usage: module_from_file(module_name, file_path) and returns: module