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

    from horizon.exceptions import NotAuthenticated
    @functools.wraps(view_func, assigned=available_attrs(view_func))
    def dec(request, *args, **kwargs):
        if request.user.is_authenticated():
            return view_func(request, *args, **kwargs)
        raise NotAuthenticated(_('Please    log    in    to    continue.'))
    return dec

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

def require_auth(view_func):