code: def test_when_fit_called_then_models_train_and_returned_predictor_inference_aligns_with_time(
      model_class, test_data_index, temp_model_path
  ):
      prediction_length = 3
      train_data = get_data_frame_with_item_index(
          ["A", "B"], data_length=10
      )
      test_data = get_data_frame_with_item_index(
          test_data_index, data_length=15
      )
  
      model = model_class(
          path=temp_model_path,
          freq="H",
          prediction_length=prediction_length,
          hyperparameters=DUMMY_HYPERPARAMETERS,
      )
  
      model.fit(train_data=train_data)
  
      max_hour_in_test = test_data.index.levels[1].max().hour
      predictions = model.predict(test_data)
      min_hour_in_pred = predictions.index.levels[1].min().hour
  
      assert min_hour_in_pred == max_hour_in_test + 1
  
imports: import itertools
  import shutil
  import sys
  import tempfile
  from unittest import mock
  import numpy
  import pandas
  import pytest
  from flaky import flaky
  from autogluon.common import space
  from autogluon.core.hpo.constants import RAY_BACKEND
  from autogluon.timeseries import TimeSeriesDataFrame
  from autogluon.timeseries.dataset.ts_dataframe import ITEMID, TIMESTAMP
  from autogluon.timeseries.metrics import AVAILABLE_METRICS
  from autogluon.timeseries.models import DeepARModel, ETSModel
  from autogluon.timeseries.models.abstract import AbstractTimeSeriesModel
  from autogluon.timeseries.models.multi_window import MultiWindowBacktestingModel
  from ..common import DUMMY_TS_DATAFRAME, CustomMetric, dict_equal_primitive, get_data_frame_with_item_index
  from .test_gluonts import TESTABLE_MODELS
  from .test_local import TESTABLE_MODELS
  from .test_mlforecast import TESTABLE_MODELS
  from .test_multi_window_model import get_multi_window_deepar
label_desc: Use image node_id 12 for calling a global function with example usage: test_when_fit_called_then_models_train_and_returned_predictor_inference_aligns_with_time(model_class, test_data_index, temp_model_path) without return types