human
I wrote the below code

    @functools.wraps(f)
    def wrapper(*args, **kw):
        old_user = get_user()
        set_user(get_task_user())
        try:
            result = f(*args, **kw)
        finally:
            set_user(old_user)
        return result
    return wrapper

What's a good function header?
assistant
#Here's a good function header.

def set_task_user(f):