code: def save_checkpoint(self, epoch_score, tez_trainer):
      if epoch_score not in [-np.inf, np.inf, -np.nan, np.nan]:
          improvement_string = f"{self.val_score:.5f} -> {epoch_score:.5f}. Saving model!"
          logger.info(improvement_string)
          self.history.append(improvement_string)
          tez_trainer.save(
              self.model_path, weights_only=self.save_weights_only
          )
      self.val_score = epoch_score
  
file_path: tez/tez/callbacks/early_stopping.py
imports: import numpy
  from accelerate.logging import get_logger
  from tez import enums
  from tez.callbacks import Callback
  from tez.logger import logger
label_desc: Use image node_id 5 for calling the EarlyStopping obj's underlying member method code with example usage: obj.save_checkpoint(epoch_score, tez_trainer) without return types