def _check_ids_match(ids_map):
    "Check that the ids in the download function's STUDY_IDS_MAP match up."
    for cancer in ids_map.values():
        for data in cancer.values():
            pdc_study_id = data['pdc_study_id']
            study_submitter_id = data['study_submitter_id']
            query = (('\n            query {\n              study (pdc_study_id: "' + pdc_study_id) + '" acceptDUA: true) {\n                pdc_study_id,\n                study_submitter_id\n              }\n            }\n            ')
            idres = _query_pdc(query)
            server_psi = idres['data']['study'][0]['pdc_study_id']
            server_ssi = idres['data']['study'][0]['study_submitter_id']
            assert (server_psi == pdc_study_id)
            assert (server_ssi == study_submitter_id)
            print(f'{server_psi} == {pdc_study_id}')
            print(f'{server_ssi} == {study_submitter_id}')
            print()
Check that the ids in the download function's STUDY_IDS_MAP match up.
def _check_ids_match(ids_map):
    
    for cancer in ids_map.values():
        for data in cancer.values():
            pdc_study_id = data['pdc_study_id']
            study_submitter_id = data['study_submitter_id']
            query = (('\n            query {\n              study (pdc_study_id: "' + pdc_study_id) + '" acceptDUA: true) {\n                pdc_study_id,\n                study_submitter_id\n              }\n            }\n            ')
            idres = _query_pdc(query)
            server_psi = idres['data']['study'][0]['pdc_study_id']
            server_ssi = idres['data']['study'][0]['study_submitter_id']
            assert (server_psi == pdc_study_id)
            assert (server_ssi == study_submitter_id)
            print(f'{server_psi} == {pdc_study_id}')
            print(f'{server_ssi} == {study_submitter_id}')
            print()