human
I wrote the below code

    @wraps(func)
    def decorated_view(*args, **kwargs):
        if (request.method in EXEMPT_METHODS):
            return func(*args, **kwargs)
        elif current_app.login_manager._login_disabled:
            return func(*args, **kwargs)
        elif (not current_user.is_authenticated):
            return current_app.login_manager.unauthorized()
        return func(*args, **kwargs)
    return decorated_view

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

def login_required(func):