code: def load_function(full_name):
      """Dynamic loading a function by the full name.
      Parameters
      ----------
      full_name: str
          The name of a PackedFunc or a string of the form "path.to.module.func"
          that indicates the module that can be imported.
          You must be aware of the load order here, it first tries to find it via
          TVM global function, if not find, try to import it by "importlib.import_module".
      Returns
      -------
      func: function or PackedFunc
          The loaded fucntion.
      """
      global_func = tvm.get_global_func(full_name, allow_missing=True)
      if global_func is not None:
          return global_func
  
      # split full name "path.to.module.func" into two parts ["path.to.module", "func"]
      module_name, func_name = full_name.rsplit(".", 1)
  
      # import module and find the function
      module = importlib.import_module(module_name)
      if hasattr(module, func_name):
          return getattr(module, func_name)
  
      raise TVMCException(
          f"No function '{func_name}' found in module '{module_name}'."
      )
  
imports: import importlib
  import tvm
  from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 1 for calling a global function with example usage: load_function(full_name) and returns: global_func, getattr