code: def test_build_autoreg_df_exception():
      """Testing build_autoreg_df with
      past_df not having the correct value_col
      we expect exception due the missing value_col"""
      df = pd.DataFrame(
          {
              "x": [
                  1.0,
                  5.0,
                  6.0,
                  7.0,
                  8.0,
                  -1.0,
                  -10.0,
                  -19.0,
                  -20.0,
                  10.0,
              ],
              "y": range(10),
          }
      )
  
      autoreg_info = build_autoreg_df(
          value_col="x",
          lag_dict={"orders": [1, 2, 5]},
          agg_lag_dict={
              "orders_list": [[1, 2, 5], [1, 3, 8], [2, 3, 4]],
              "interval_list": [(1, 5), (1, 8)],
          },
          series_na_fill_func=None,
      )  # no filling of NAs
  
      build_lags_func = autoreg_info["build_lags_func"]
  
      # past_df with correct column names
      past_df = df.copy()
      # changing column name in past_df to something ("z")
      # other than the expected ("x")
      past_df.rename(columns={"x": "z"}, inplace=True)
      with pytest.raises(
          ValueError,
          match="x must appear in past_df if past_df is not None",
      ):
          build_lags_func(df=df, past_df=past_df)
  
imports: import numpy
  import pandas
  import pytest
  from greykite.common.features.timeseries_lags import build_agg_lag_df
  from greykite.common.features.timeseries_lags import build_autoreg_df
  from greykite.common.features.timeseries_lags import build_autoreg_df_multi
  from greykite.common.features.timeseries_lags import build_lag_df
  from greykite.common.features.timeseries_lags import min_max_lag_order
  from greykite.common.python_utils import assert_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_build_autoreg_df_exception() without return types