human
Complete the below
@second_order_decorator(jwt_required)
def is_user_itself(f):

    ''''Allows admin and super admin access to any resource irrespective of id.
    Otherwise the user can only access his/her resource.
    :param f:
    :return:'
    '''

=====
What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    @wraps(f)
    def decorated_function(*args, **kwargs):
        user = current_identity
        if ((not user.is_admin) and (not user.is_super_admin) and (user.id != kwargs['id'])):
            return ForbiddenError({'source': ''}, 'Access    Forbidden').respond()
        return f(*args, **kwargs)
    return decorated_function