human
I wrote the below code

    @wraps(func)
    def auth_wrapper(self, *args, **kwargs):
        if (hasattr(self, 'session') and self.session.has_auth()):
            return func(self, *args, **kwargs)
        else:
            from .exceptions import error_for
            r = generate_fake_error_response('{"message":    "Requires    authentication"}')
            raise error_for(r)
    return auth_wrapper

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

def requires_auth(func):