def __exit__(self, t, value, traceback):
        self.cls._collection = self.ori_collection
        self.cls._get_collection_name = self.ori_get_collection_name
Reset the collection
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/context_managers.py/switch_collection.__exit__