code: def test_given_low_time_limit_when_fit_called_then_model_training_does_not_exceed_time_limit(
      model_class, temp_model_path
  ):
      model = model_class(
          path=temp_model_path,
          freq="H",
          prediction_length=5,
          hyperparameters={"epochs": 20000},
      )
  
      assert not model.gts_predictor
      model.fit(train_data=DUMMY_TS_DATAFRAME, time_limit=2)
      assert isinstance(model.gts_predictor, GluonTSPredictor)
  
imports: from unittest import mock
  import numpy
  import pytest
  from gluonts.model.predictor import Predictor
  from autogluon.timeseries.models.gluonts import DeepARModel, DLinearModel, PatchTSTModel, SimpleFeedForwardModel, TemporalFusionTransformerModel, WaveNetModel
  from autogluon.timeseries.utils.features import TimeSeriesFeatureGenerator
  from ..common import DATAFRAME_WITH_COVARIATES, DATAFRAME_WITH_STATIC, DUMMY_TS_DATAFRAME
label_desc: Use image node_id 3 for calling a global function with example usage: test_given_low_time_limit_when_fit_called_then_model_training_does_not_exceed_time_limit(model_class, temp_model_path) without return types