def verify_node_settings_document(document, provider):
    try:
        assert('_id' in document)
        assert('{}_list_id'.format(provider) in document)
    except __HOLE__:
        return False
    return True
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/migration/migrate_citation_addons_list_id.py/verify_node_settings_document