code: def get_instantiation_info(module, name, template_keys):
      pattern = re.compile("%s((?:_[^_]+)+)" % name)
      possible_parameters = []
      for full_name in module.__dict__:
          result = pattern.match(full_name)
          if result:
              possible_parameters.append(result.group(1).split("_")[1:])
      template_values = zip(*possible_parameters)
  
      infos = ["Instantiations:"]
      for key, values in zip(template_keys, template_values):
          values = list(set(values))
          if values[0] in lib.name2dtype:
              values = [lib.name2dtype[v] for v in values]
          else:
              values = sorted(eval(v) for v in values)
          values = [str(v) for v in values]
          infos.append("- **%s**: %s" % (key, ", ".join(values)))
      return "\n    ".join(infos)
  
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 5 for calling a global function with example usage: get_instantiation_info(module, name, template_keys) and returns: str