code: def test_when_context_length_is_not_set_then_default_context_length_is_used(
      model_class,
  ):
      data = DUMMY_TS_DATAFRAME
      model = model_class(
          freq=data.freq, hyperparameters=DUMMY_HYPERPARAMETERS
      )
      model.fit(train_data=data)
      estimator_init_args = model._get_estimator_init_args()
      assert (
          estimator_init_args["context_length"]
          == model.default_context_length
      )
  
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 1 for calling a global function with example usage: test_when_context_length_is_not_set_then_default_context_length_is_used(model_class) without return types