code: def make_helper_class(
      module, name, target_module, template_keys, template_values
  ):
      InstanceClass = get_any_instantiation(module, name)
      # copy all members so that autodoc can work
      members = dict(InstanceClass.__dict__)
      # add instantiation info to docstring
      doc = InstanceClass.__doc__
      indent = re.search("\n *", doc).group(0)
      info = "\n" + get_instantiation_info(module, name, template_keys)
      doc += info.replace("\n", indent)
      members.update(
          {
              "module": module,
              "name": name,
              "__module__": target_module.__name__,
              "__doc__": doc,
              "template_keys": template_keys,
              "template_values": template_values,
          }
      )
      TemplateClass = type(name, (TemplateHelper,), members)
      return TemplateClass
  
file_path: graphvite/python/graphvite/helper.py
imports: from __future__ import absolute_import, print_function
  import re
  from .None import lib
label_desc: Use image node_id 6 for calling a global function with example usage: make_helper_class(module, name, target_module, template_keys, template_values) and returns: TemplateClass