def get_case_footprint_info(domain, owner_id):
    open_case_ids = set(CaseAccessors(domain).get_open_case_ids(owner_id))
    dependent_cases = get_dependent_case_info(domain, open_case_ids)
    return FootprintInfo(base_ids=set(open_case_ids),  # open cases with this owner
                         all_ids=dependent_cases.all_ids | open_case_ids,
                         extension_ids=dependent_cases.extension_ids)
This function is duplicating a lot of functionality in get_footprint/get_related_cases.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/phone/cleanliness.py/get_case_footprint_info