def get_session_data(case, current_case, type_info):
    # this logic should ideally be implemented in subclasses of
    # CommCareCase
    if type_info and type_info in case.type:
        attr = type_info[case.type]['case_id_attr']
        return {
            attr: case.case_id,
            'case_id': current_case.case_id
        }
    else:
        return {
            'case_id': case.case_id
        }
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/case/templatetags/case_tags.py/get_session_data/swapped operands of `in`