human
I wrote the below code

    def _check_valid_prefs(request, *args, **kwargs):
        if request.user.is_authenticated():
            Profile.objects.get_or_create(user=request.user)
        return view_func(request, *args, **kwargs)
    return _check_valid_prefs

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

@simple_decorator
def valid_prefs_required(view_func):