code: def __exit__(self, *_):
      mode_name_to_old_value = self.mode_name_to_value_list.pop()
      for mode_name in self.mode_name_to_value.keys():
          # set back old values
          setattr(
              _internal_mode,
              mode_name,
              mode_name_to_old_value[mode_name],
          )
  
file_path: mars/mars/core/mode.py
imports: import functools
  import inspect
  import threading
  from ..config import options
label_desc: Use image node_id 3 for calling the _EnterModeFuncWrapper obj's underlying member method code with example usage: obj.__exit__() without return types