def __setstate__(self, value):
        self.__mode = value['mode']
        self.__mongos_mode = _MONGOS_MODES[self.__mode]
        self.__tag_sets = _validate_tag_sets(value['tag_sets'])
Restore from pickling.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/read_preferences.py/_ServerMode.__setstate__