class_docstr: Module level tests for all sktime forecasters.
class_docstr_tok: ["Module","level","tests","for","all","sktime","forecasters","."]
docstr: Check that predicted time index equals fh for full in-sample predictions.
docstr_tok: ["Check","that","predicted","time","index","equals","fh","for","full","in-sample","predictions","."]
code: def test_predict_time_index_in_sample_full(
      self, estimator_instance, n_columns, index_fh_comb
  ):
      """Check that predicted time index equals fh for full in-sample predictions."""
      index_type, fh_type, is_relative = index_fh_comb
      if fh_type == "timedelta":
          return None
          # todo: ensure check_estimator works with pytest.skip like below
          # pytest.skip(
          #    "ForecastingHorizon with timedelta values "
          #     "is currently experimental and not supported everywhere"
          # )
      y_train = _make_series(n_columns=n_columns, index_type=index_type)
      cutoff = get_cutoff(y_train, return_index=True)
      steps = -np.arange(len(y_train))
      fh = _make_fh(cutoff, steps, fh_type, is_relative)
  
      try:
          estimator_instance.fit(y_train, fh=fh)
          y_pred = estimator_instance.predict()
          _assert_correct_pred_time_index(y_pred.index, cutoff, fh)
  
          if estimator_instance.get_tag("capability:pred_int:insample"):
              y_pred_int = estimator_instance.predict_interval()
              _assert_correct_pred_time_index(
                  y_pred_int.index, cutoff, fh
              )
              y_pred_q = estimator_instance.predict_quantiles()
              _assert_correct_pred_time_index(
                  y_pred_q.index, cutoff, fh
              )
      except NotImplementedError:
          pass
  
imports: import numpy
  import pandas
  import pytest
  from sktime.datatypes import check_is_mtype
  from sktime.datatypes._utilities import get_cutoff
  from sktime.exceptions import NotFittedError
  from sktime.forecasting.base._delegate import _DelegatedForecaster
  from sktime.forecasting.base._fh import ForecastingHorizon
  from sktime.forecasting.tests._config import TEST_ALPHAS, TEST_FHS, TEST_OOS_FHS, TEST_STEP_LENGTHS_INT, TEST_WINDOW_LENGTHS_INT, VALID_INDEX_FH_COMBINATIONS
  from sktime.performance_metrics.forecasting import mean_absolute_percentage_error
  from sktime.split import ExpandingWindowSplitter, SlidingWindowSplitter, temporal_train_test_split
  from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester
  from sktime.utils._testing.forecasting import _assert_correct_columns, _assert_correct_pred_time_index, _get_expected_index_for_update_predict, _get_n_columns, _make_fh, make_forecasting_problem
  from sktime.utils._testing.series import _make_series
  from sktime.utils.validation.forecasting import check_fh
label_desc: Use image node_id 8 for calling the TestAllForecasters obj's underlying member method code with example usage: obj.test_predict_time_index_in_sample_full(estimator_instance, n_columns, index_fh_comb) and returns: None