code: def test_forecast_pipeline_rolling_evaluation_error():
      """Checks errors of forecast_pipeline_rolling_evaluation"""
      data = generate_df_for_tests(freq="D", periods=30)
      df = data["df"]
      tscv = RollingTimeSeriesSplit(
          forecast_horizon=7, periods_between_train_test=7, max_splits=1
      )
      # Different forecast_horizon in pipeline_params and tscv
      with pytest.raises(
          ValueError,
          match="Forecast horizon in 'pipeline_params' "
          "does not match that of the 'tscv'.",
      ):
          pipeline_params = mock_pipeline(df=df, forecast_horizon=15)
          forecast_pipeline_rolling_evaluation(
              pipeline_params=pipeline_params, tscv=tscv
          )
  
      with pytest.raises(
          ValueError,
          match="'periods_between_train_test' in 'pipeline_params' "
          "does not match that of the 'tscv'.",
      ):
          pipeline_params = mock_pipeline(
              df=df, forecast_horizon=7, periods_between_train_test=2
          )
          forecast_pipeline_rolling_evaluation(
              pipeline_params=pipeline_params, tscv=tscv
          )
  
imports: import sys
  import numpy
  import pandas
  import pytest
  from sklearn.metrics import mean_absolute_error
  from greykite.common.constants import TIME_COL
  from greykite.common.constants import VALUE_COL
  from greykite.common.evaluation import EvaluationMetricEnum
  from greykite.common.python_utils import assert_equal
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.common.testing_utils import generate_df_with_reg_for_tests
  from greykite.framework.benchmark.benchmark_class_helper import forecast_pipeline_rolling_evaluation
  from greykite.framework.pipeline.pipeline import forecast_pipeline
  from greykite.framework.utils.framework_testing_utils import mock_pipeline
  from greykite.framework.utils.result_summary import summarize_grid_search_results
  from greykite.sklearn.cross_validation import RollingTimeSeriesSplit
  from greykite.sklearn.estimator.prophet_estimator import ProphetEstimator
  from greykite.sklearn.estimator.silverkite_estimator import SilverkiteEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: test_forecast_pipeline_rolling_evaluation_error() without return types