human
I wrote the below code

    def _check(*args, **kwargs):
        siteconfig = SiteConfiguration.objects.get_current()
        if siteconfig.get(u'auth_require_sitewide_login'):
            return login_required(view_func)(*args, **kwargs)
        else:
            return view_func(*args, **kwargs)
    return _check

What's a good function header?

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

@simple_decorator
def check_login_required(view_func):