code: def import_from_file(module_name: str, filepath: str):
      """
      Imports a module from file.
  
      Args:
          module_name (str): Assigned to the module's __name__ parameter (does not
              influence how the module is named outside of this function)
          filepath (str): Path to the .py file
  
      Returns:
          The module
      """
      spec = importlib.util.spec_from_file_location(
          module_name, filepath
      )
      module = importlib.util.module_from_spec(spec)
      spec.loader.exec_module(module)
      return module
  
file_path: traingenerator/app/utils.py
imports: import streamlit
  import pickle
  import pandas
  import json
  import base64
  import uuid
  import re
  import jupytext
  from bokeh.models.widgets import Div
  import math
  import importlib.util
label_desc: Use image node_id 1 for calling a global function with example usage: import_from_file(module_name, filepath) and returns: module