code: def __init__(self, patience=10):
      self.patience = patience
      self.counter = 0
      self.best_score = None
      self.early_stop = False
  
imports: import numpy
label_desc: Use image node_id 1 to create a new EarlyStopping object  with example: obj = EarlyStopping(patience)