code: def __init__(self, time_limit=None, **kwargs):
      super().__init__(**kwargs)
      self.time_limit = time_limit
      assert self.time_limit is None or self.time_limit > 0
      self.time_start = time.time()
      self.prev_times = []
  
file_path: autogluon/core/src/autogluon/core/hpo/ray_tune_scheduler.py
imports: import time
  from ray.tune.schedulers import FIFOScheduler
label_desc: Use image node_id 1 to create a new AvgEarlyStopFIFOScheduler object from inherited base classes: FIFOScheduler with example: obj = AvgEarlyStopFIFOScheduler(time_limit)