human
Complete this python program:
def decorate(decorator, fn):
assistant
#Here is the Python code you requested.

    """Decorate the result of `fn` with `action`
    """
    @functools.wraps(fn)
    def decorated(*args, **kwargs):
        return decorator(fn(*args, **kwargs))
    return decorated