def get_group_id(domain, owner_type, facility_id):
    owner_username = get_owner_username(domain, owner_type, facility_id)
    try:
        return INDEXED_GROUPS[domain][owner_username]._id
    except __HOLE__:
        return None
dataset/ETHPy150Open dimagi/commcare-hq/custom/_legacy/hsph/tasks.py/get_group_id