def __exit__(self, t, value, traceback):
        self.cls._collection = self.ori_collection
        self.cls._get_collection_name = self.ori_get_collection_name
Check if a variable is a list.
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/context_managers.py/switch_collection.__exit__--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/is_list