code: def decorate_function(self, name, decorator):
          
          self.functions[name] = decorator(self.functions[name])
docs: Decorate function with given name with given decorator.
  
          :param str name: Name of the function.
          :param callable decorator: Decorator callback.