class_docstr: Callback to ensure time limit is respected, otherwise early stops the model to avoid going over time.
  
  This callback is CatBoost specific.
  
  Parameters
  ----------
  time_start : float
      The starting time (usually obtained via `time.time()`) of the training.
  time_limit : float
      The time in seconds before stopping training.
code: def after_iteration(self, info):
      time_cur = time.time()
      time_per_iter = (time_cur - self.time_start) / info.iteration
      if self.time_end < (time_cur + 2 * time_per_iter):
          logger.log(
              20,
              f"\tRan out of time, early stopping on iteration {info.iteration}.",
          )
          return False
      return True
  
file_path: autogluon/tabular/src/autogluon/tabular/models/catboost/callbacks.py
imports: import logging
  import time
  from autogluon.common.utils.resource_utils import ResourceManager
  from .catboost_utils import CATBOOST_QUANTILE_PREFIX
label_desc: Use image node_id 2 for calling the TimeCheckCallback obj's underlying member method code with example usage: obj.after_iteration(info) and returns: True, False