def is_not_whitelist_building(parent_org, building, whitelist_orgs):
    """returns false if a building is part of the whitelist_orgs

    :param parent_org: the umbrella parent Organization inst.
    :param building: the BuildingSnapshot inst.
    :param whitelist_orgs: queryset of Organization insts.
    :returns: bool
    """
    return (parent_org and whitelist_orgs not in building.super_organization)
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/search.py/is_not_whitelist_building/swapped operands of `not in`