human
I wrote the below code

    def decorated_login(request, *args, **kwargs):
        if ((func.__name__ != 'decorated_login') and VERBOSE):
            log.info(('AXES:    Calling    decorated    function:    %s' % func.__name__))
            if args:
                log.info(('args:    %s' % str(args)))
            if kwargs:
                log.info(('kwargs:    %s' % kwargs))
        if is_already_locked(request):
            return lockout_response(request)
        response = func(request, *args, **kwargs)
        if (func.__name__ == 'decorated_login'):
            return response
        if (request.method == 'POST'):
            login_unsuccessful = (response and (not response.has_header('location')) and (response.status_code != 302))
            access_log = AccessLog.objects.create(user_agent=request.META.get('HTTP_USER_AGENT', '<unknown>')[:255], ip_address=get_ip(request), username=request.POST.get(USERNAME_FORM_FIELD, None), http_accept=request.META.get('HTTP_ACCEPT', '<unknown>'), path_info=request.META.get('PATH_INFO', '<unknown>'), trusted=(not login_unsuccessful))
            if check_request(request, login_unsuccessful):
                return response
            return lockout_response(request)
        return response
    return decorated_login

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

def watch_login(func):