def __getstate__(self):
        return {'mode': self.__mode, 'tag_sets': self.__tag_sets}
Return value of object for pickling.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/read_preferences.py/_ServerMode.__getstate__