code: def preserveName(f):
      
      def decorator(decorated):
          return copyfunction(decorated,
                              dict(name=f.__name__), dict(name=f.__name__))
      return decorator
docs: Preserve the name of the given function on the decorated function.