docstr: Approximately how long `fit()` should run for (wallclock time in seconds).
  If not specified, `fit()` will run until all models have completed training, but will not repeatedly bag models unless `num_bag_sets` is specified.
docstr_tok: ["Approximately","how","long","`","fit","(",")","`","should","run","for","(","wallclock","time","in","seconds",")",".","If","not","specified",",","`","fit","(",")","`","will","run","until","all","models","have","completed","training",",","but","will","not","repeatedly","bag","models","unless","`","num_bag_sets","`","is","specified","."]
code: def time_limit(self, time_limit: int) -> ConfigBuilder:
      """
      Approximately how long `fit()` should run for (wallclock time in seconds).
      If not specified, `fit()` will run until all models have completed training, but will not repeatedly bag models unless `num_bag_sets` is specified.
      """
      if time_limit is not None:
          assert time_limit > 0, "time_limit must be greater than zero"
      self.config["time_limit"] = time_limit
      return self
  
imports: from __future__ import annotations
  import copy
  from typing import Union
  from sklearn.base import BaseEstimator
  from autogluon.core.scheduler import scheduler_factory
  from autogluon.features import AutoMLPipelineFeatureGenerator
  from autogluon.tabular.configs.hyperparameter_configs import hyperparameter_config_dict
  from autogluon.tabular.configs.presets_configs import tabular_presets_dict
  from autogluon.tabular.trainer.model_presets.presets import MODEL_TYPES
label_desc: Use image node_id 3 for calling the ConfigBuilder obj's underlying member method code with example usage: obj.time_limit(time_limit) and returns: self