def get_dbs_from_app_label_and_map(app_label, app_db_map):
    if app_db_map and app_db_map in app_label:
        db_names = app_db_map[app_label]
        if not isinstance(db_names, (list, tuple, set)):
            db_names = [db_names]

        return [get_db(db_name) for db_name in set(db_names)]
    return [get_db()]
dataset/ETHPy150Open dimagi/commcare-hq/corehq/preindex/preindex_plugins.py/get_dbs_from_app_label_and_map/swapped operands of `in`