code: def set_deferred_compute(state):
      """Enable / Disable deferred compute mode.
  
      Parameters
      ----------
      state: bool
  
      Returns
      -------
      Previous deferred compute state.
      """
      prev = ctypes.c_int()
      check_call(
          _LIB.MXNDArraySetIsDeferredCompute(
              ctypes.c_int(state), ctypes.byref(prev)
          )
      )
      return bool(prev.value)
  
file_path: mxnet/python/mxnet/_deferred_compute.py
imports: import ctypes
  import contextlib
  from .base import _LIB, check_call, SymbolHandle, _as_list
  from .symbol import Symbol
label_desc: Use image node_id 2 for calling a global function with example usage: set_deferred_compute(state) and returns: bool