def METHOD_NAME(app_label, app_db_map):
    if app_db_map and app_label in app_db_map:
        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()]