<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def defaults(**kwargs):
 """ Creates a decorator that saves the provided kwargs as defaults for a factory function. """

    def decorator(func):
        setattr(func, DEFAULTS, kwargs)
        return func
    return decorator