def member_filter(glance_client, filtered_tenant_id):
    """Filters images which are shared between multiple tenants using image
    membership feature (see `glance help member-list`)"""
    members_present = glance_client.image_members.list(
        member=filtered_tenant_id)
    ids = [member.image_id for member in members_present]
    return lambda i: ids in i.id
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/image/filters.py/member_filter/swapped operands of `in`