code: def _load_func_and_config_class(workflow):
      # Module name should be configurable
      module_name, func_name = workflow.rsplit(".", 1)
  
      module = importlib.import_module(module_name)
      # Function name should be configurable
      func = getattr(module, func_name)
  
      # Import in here so that logging and override take place first
      from reagent.core.configuration import make_config_class
  
      @make_config_class(func)
      class ConfigClass:
          pass
  
      return func, ConfigClass
  
file_path: ReAgent/reagent/workflow/cli.py
imports: import dataclasses
  import importlib
  import json
  import logging
  import os
  import sys
  import click
  from ruamel.yaml import YAML
label_desc: Use image node_id 2 for calling a global function with example usage: _load_func_and_config_class(workflow) and returns: func,  ConfigClass