code: def _update_stalled(self):
      self.stalled_tolerance -= 1
  
      logger.info(
          "Stalled patience: {}/{}".format(
              self.stalled_tolerance, self.tolerance
          )
      )
  
      if self.stalled_tolerance == 0:
          logger.info(
              "Training finished after stalled validations. Early Stop!"
          )
          self._log_best_step()
  
      self._decreasing_or_stopped_status_update(self.stalled_tolerance)
  
imports: from enum import Enum
  from onmt.utils.logging import logger
label_desc: Use image node_id 3 for calling the EarlyStopping obj's underlying member method code with example usage: obj._update_stalled() without return types