code: def save_checkpoint(self, model):
      """Saves model when validation loss decrease."""
      torch.save(model.state_dict(), "es_checkpoint.pt")
  
imports: import torch
label_desc: Use image node_id 3 for calling the EarlyStopping obj's underlying member method code with example usage: obj.save_checkpoint(model) without return types