human
I wrote the below code

    def decorator(view_func):
        @login_required(redirect_field_name=redirect_field_name, login_url=login_url)
        def _wrapped_view(request, *args, **kwargs):
            if (not EmailAddress.objects.filter(user=request.user, verified=True).exists()):
                send_email_confirmation(request, request.user)
                return render(request, 'account/verified_email_required.html')
            return view_func(request, *args, **kwargs)
        return _wrapped_view
    if function:
        return decorator(function)
    return decorator

What's a good function header?

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

def verified_email_required(function=None, login_url=None, redirect_field_name=REDIRECT_FIELD_NAME):