class_docstr: Simple patience tracker.
  
  Given an `Objective`, it will check whether the metric has improved and
  update its patience count. A better value sets the patience back to zero.
  
  In addition, one needs to call ``reset()`` explicitly after the patience
  was exceeded, otherwise `RuntimError` is raised when trying to invoke
  `step`.
  
  ``Patience`` keeps track of the number of invocations to ``reset``, via
  ``num_resets``.
code: def reset(self) -> None:
      self.current_patience = 0
      self.exceeded = False
      self.num_resets += 1
  
imports: from dataclasses import field
  from typing import Dict, Any, Optional
  from typing_extensions import Literal
  import numpy
  import mxnet
  from mxnet import gluon
  import mxnet.gluon.nn
  from gluonts.core.component import validated
  from gluonts.pydantic import dataclass
  from .callback import Callback
label_desc: Use image node_id 1 for calling the Patience obj's underlying member method code with example usage: obj.reset() without return types