human
I wrote the below code

    @wraps(view_func)
    def _checklogin(request, *args, **kwargs):
        if (not user_is_authenticated(request.user)):
            return view_func(request, *args, **kwargs)
        return render(request, template_name, status=status)
    return _checklogin

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

def login_forbidden(view_func, template_name='login_forbidden.html', status=403):