human
Solve the following python programming problem given the following code:
@second_order_decorator(jwt_required)
def is_organizer(f):
assistant
#Here is the Python code you requested.

    """Allows only Organizer to access the event resources.
    :param f:
    :return:
    """
    @wraps(f)
    def decorated_function(*args, **kwargs):
        user = current_identity
        if user.is_staff:
            return f(*args, **kwargs)
        if (('event_id' in kwargs) and user.is_organizer(kwargs['event_id'])):
            return f(*args, **kwargs)
        return ForbiddenError({'source': ''}, 'Organizer    access    is    required').respond()
    return decorated_function