code: def register(self, name):
          
          def dec(func):
              self._registry[name] = func
              return func
          return dec
docs: Register a callable with the registry under a particular name.
  
          Parameters
          ----------
          name : str
              The name under which to register a function
  
          Returns
          -------
          dec : callable
              A decorator that takes a function and will register it under the name.