code: def __init__(self, patience=10):
      self.patience = patience
      self.counter = 0
      self.best_acc = None
      self.best_loss = None
      self.early_stop = False
      self.model = None
  
file_path: AutoGL/test/performance/heterogeneous/dgl/helper.py
imports: import numpy
  import pickle
label_desc: Use image node_id 1 to create a new EarlyStopping object from inherited base classes: object with example: obj = EarlyStopping(patience)