code: def get_registry(interface):
      """
      Getter method for retrieving the registry
      instance for a given extendable type
  
      Parameters
      ----------
      interface : type
          extendable type (base class)
  
      Returns
      -------
      manager : Registry
          The corresponding registry
      """
      try:
          return custom_types[interface]
      except KeyError:
          raise ValueError("class specified is not an extendable type")
  
imports: import re
  import six
  from toolz import curry
label_desc: Use image node_id 4 for calling a global function with example usage: get_registry(interface) and returns: custom_types