code: def __init__(self, patience=10):
      self.patience = patience
      self.counter = 0
      self.best_score = None
      self.early_stop = False
  
file_path: dgl/examples/pytorch/gatv2/train.py
imports: import argparse
  import time
  import dgl
  import numpy
  import torch
  import torch.nn.functional
  from dgl.data import CiteseerGraphDataset, CoraGraphDataset, PubmedGraphDataset, register_data_args
  from gatv2 import GATv2
label_desc: Use image node_id 1 to create a new EarlyStopping object  with example: obj = EarlyStopping(patience)