code: def __init__(self, mode_name_to_value):
      self.mode_name_to_value = mode_name_to_value
  
      # as the wrapper may enter for many times
      # record old values for each time
      self.mode_name_to_value_list = list()
  
file_path: mars/mars/core/mode.py
imports: import functools
  import inspect
  import threading
  from ..config import options
label_desc: Use image node_id 1 to create a new _EnterModeFuncWrapper object  with example: obj = _EnterModeFuncWrapper(mode_name_to_value)