code: def register(interface, name, custom_class):
      """
      Registers a class for retrieval by the load method
  
      Parameters
      ----------
      interface : type
          The base class for which to perform this operation
      name : str
          The name of the subclass
      custom_class : type
          The class to register, which must be a subclass of the
          abstract base class in self.dtype
      """
  
      return get_registry(interface).register(name, custom_class)
  
imports: import re
  import six
  from toolz import curry
label_desc: Use image node_id 6 for calling a global function with example usage: register(interface, name, custom_class) and returns: get_registry