code: def test_init_TypeError_when_series_weights_argument_is_not_dict():
      """
      Test TypeError is raised when series_weights is not a dict.
      """
      series_weights = "---"
      err_msg = re.escape(
          (
              f"Argument `series_weights` must be a dict of floats or ints."
              f"Got {type(series_weights)}."
          )
      )
      with pytest.raises(TypeError, match=err_msg):
          ForecasterAutoregMultiSeriesCustom(
              regressor=LinearRegression(),
              fun_predictors=create_predictors,
              window_size=5,
              series_weights=series_weights,
          )
  
file_path: skforecast/skforecast/ForecasterAutoregMultiSeriesCustom/tests/test_init.py
imports: import re
  import pytest
  from skforecast.ForecasterAutoregMultiSeriesCustom import ForecasterAutoregMultiSeriesCustom
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 5 for calling a global function with example usage: test_init_TypeError_when_series_weights_argument_is_not_dict() without return types