code: def enter_mode(kernel=None, build=None):
      mode_name_to_value = {
          "kernel": kernel,
          "build": build,
      }
      mode_name_to_value = {
          k: v for k, v in mode_name_to_value.items() if v is not None
      }
  
      return _EnterModeFuncWrapper(mode_name_to_value)
  
file_path: mars/mars/core/mode.py
imports: import functools
  import inspect
  import threading
  from ..config import options
label_desc: Use image node_id 4 for calling a global function with example usage: enter_mode(kernel, build) and returns: _EnterModeFuncWrapper