human
I wrote the below code

    def wrapper(*args, **kwargs):
        if ((not is_admin_context(args[0])) and (not is_user_context(args[0]))):
            raise exception.NotAuthorized()
        return f(*args, **kwargs)
    return wrapper

What's a good function header?

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

def require_context(f):