human
I wrote the below code

    def redirect_func(user):
        return user.is_authenticated()
    if hasattr(redirect, '__call__'):
        return user_access_decorator(redirect_func, redirect_field=None, redirect_url_func=(lambda : reverse('home')))(redirect)
    else:
        return user_access_decorator(redirect_func, redirect_field=None, redirect_url_func=(lambda : redirect))

What's a good function header?

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

def logout_required(redirect):