code: def is_training():
      
      curr = ctypes.c_bool()
      check_call(_LIB.MXAutogradIsTraining(ctypes.byref(curr)))
      return curr.value
docs: Get status on training/predicting.
  
      Returns
      -------
      Current state of training/predicting.