code: def import_string(code, module_name="model"):
      # import string as python module
  
      import types
  
      module = types.ModuleType(module_name)
  
      exec(code, module.__dict__)
      # sys.modules['my_module'] = module
      return module
  
file_path: mindsdb/mindsdb/integrations/handlers/byom_handler/proc_wrapper.py
imports: import io
  import sys
  import pickle
  import inspect
  from enum import Enum
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: import_string(code, module_name) and returns: module