human
Here's a good function header given the following:
I wrote the below code

    @wraps(f)
    def decorated(*args, **kwargs):
        cookie = request.cookies.get(auth.cookie_name)
        if cookie:
            user = auth.user_for_cookie(cookie)
        else:
            user = None
        if user:
            return f(user, *args, **kwargs)
        else:
            return redirect((auth.login_url + ('?next=%s' % quote(request.path))))
    return decorated

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

def authenticated(f):