human
I wrote the below code

    @functools.wraps(func)
    def wrapper(request, *args, **kws):
        if (not request.session.get('logined', False)):
            return HttpResponseRedirect('/wc/login')
        if (not request.session.get('auth_is_admin')):
            return HttpResponseRedirect('/wc/logout')
        return func(request, *args, **kws)
    return wrapper

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

def admin_check(func):