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

    def _decorator(func_or_class):
        '\n                                Requires    either    OAuth2    or    Session-based    authentication.\n                                If    is_user    is    True,    also    requires    username    in    URL    matches    the    request    user.\n                                '
        func_or_class.authentication_classes = (JwtAuthentication, OAuth2AuthenticationAllowInactiveUser, SessionAuthenticationAllowInactiveUser)
        func_or_class.permission_classes = ()
        if is_authenticated:
            func_or_class.permission_classes += (IsAuthenticated,)
        if is_user:
            func_or_class.permission_classes += (IsUserInUrl,)
        return func_or_class
    return _decorator

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

def view_auth_classes(is_user=False, is_authenticated=True):