code: def test_check_predict_input_TypeError_when_last_window_is_not_pandas_DataFrame(
      forecaster_name,
  ):
      """
      `ForecasterAutoregMultiSeries` and `ForecasterAutoregMultiVariate`.
      """
      last_window = np.arange(5)
      err_msg = re.escape(
          f"`last_window` must be a pandas DataFrame. Got {type(last_window)}."
      )
      with pytest.raises(TypeError, match=err_msg):
          check_predict_input(
              forecaster_name=forecaster_name,
              steps=10,
              fitted=True,
              included_exog=True,
              index_type=pd.RangeIndex,
              index_freq=None,
              window_size=5,
              last_window=last_window,
              last_window_exog=None,
              exog=pd.Series(np.arange(10)),
              exog_type=pd.Series,
              exog_col_names=None,
              interval=None,
              alpha=None,
              max_steps=None,
              levels="1",
              series_col_names=["1", "2"],
          )
  
imports: import re
  import pytest
  import numpy
  import pandas
  from sklearn.exceptions import NotFittedError
  from skforecast.utils import check_predict_input
  from skforecast.utils import check_exog
  from skforecast.utils import preprocess_exog
  from skforecast.utils import preprocess_last_window
  from skforecast.exceptions import MissingValuesExogWarning
label_desc: Use image node_id 9 for calling a global function with example usage: test_check_predict_input_TypeError_when_last_window_is_not_pandas_DataFrame(forecaster_name) without return types