human
I wrote the below code

    def _wrapper(request, *args, **kwargs):
        user = request.user
        if (not user.is_authenticated()):
            return redirect(('%s?next=%s' % (settings.LOGIN_URL, request.path)))
        else:
            return f(request, *args, **kwargs)
    return _wrapper

What's a good function header?

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

def login_required(f):