def read_pref_mode_from_name(name):
    return _MONGOS_MODES.index(name)
Get the read preference mode from mongos/uri name.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/read_preferences.py/read_pref_mode_from_name