code: def defaults(**kwargs):
      
      def decorator(func):
          setattr(func, DEFAULTS, kwargs)
          return func
      return decorator
docs: Creates a decorator that saves the provided kwargs as defaults for a factory function.