def is_resource_owner(actor_id=None, resource_id=None):
    '''
    Returns True if the specified actor_id is an Owner of the specified resource id, otherwise False
    @param actor_id:
    @param resource_id:
    @return:
    '''
    if actor_id is None or resource_id is None:
        raise BadRequest('One or all of the method parameters are not set')

    gov_controller = bootstrap.container_instance.governance_controller
    owners =  gov_controller.rr.find_objects(subject=resource_id, predicate=PRED.hasOwner, object_type=RT.ActorIdentity, id_only=True)

    if owners[0] not in actor_id:
        return False

    return True
dataset/ETHPy150Open ooici/pyon/pyon/core/governance/__init__.py/is_resource_owner/swapped operands of `not in`