code: def test_TypeError_initialize_lags_when_lags_is_not_valid_type_ForecasterAutoregMultiVariate():
      """
      Test TypeError is raised when lags is not a valid type in ForecasterAutoregMultiVariate.
      """
      lags = "not_valid_type"
      err_msg = re.escape(
          f"`lags` argument must be a dict, int, 1d numpy ndarray, range or list. "
          f"Got {type(lags)}."
      )
      with pytest.raises(TypeError, match=err_msg):
          initialize_lags(
              forecaster_name="ForecasterAutoregMultiVariate", lags=lags
          )
  
file_path: skforecast/skforecast/utils/tests/test_initialize_lags.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import initialize_lags
label_desc: Use image node_id 5 for calling a global function with example usage: test_TypeError_initialize_lags_when_lags_is_not_valid_type_ForecasterAutoregMultiVariate() without return types