human
Here's a good function header given the following:
I wrote the below code

    @wraps(f)
    def decorated_function(*args, **kwargs):
        user = current_identity
        if ('POST' in request.method):
            kwargs['user_id'] = user.id
        elif (not user.is_staff):
            kwargs['user_id'] = user.id
        return f(*args, **kwargs)
    return decorated_function

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

@second_order_decorator(jwt_required)
def accessible_events(f):