code: def instantiate_channel(channel_yml):
      name = channel_yml["name"]
      module_name, class_name = name.rsplit(".", 1)
  
      print(f"Instantiating {class_name} from module {module_name}")
      clazz = getattr(importlib.import_module(module_name), class_name)
      channel_yml.pop("name")
      return clazz(**channel_yml)
  
imports: import argparse
  import yaml
  from docgen.core import DocumentProcessor
  import importlib
label_desc: Use image node_id 1 for calling a global function with example usage: instantiate_channel(channel_yml) and returns: clazz