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

    @wraps(f)
    def decorated(*args, **kwargs):
        self = args[0]
        request = args[1]
        token = request.args.get(u'token', [u''])[0]
        if ((self.data_router.token is None) or (token == self.data_router.token)):
            return f(*args, **kwargs)
        request.setResponseCode(401)
        return u'unauthorized'
    return decorated

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

def requires_auth(f):