code: def test_init_TypeError_when_level_is_not_a_str():
      """
      Test TypeError is raised when level is not a str.
      """
      level = 5
      err_msg = re.escape(
          f"`level` argument must be a str. Got {type(level)}."
      )
      with pytest.raises(TypeError, match=err_msg):
          ForecasterAutoregMultiVariate(
              LinearRegression(), level=level, lags=2, steps=3
          )
  
file_path: skforecast/skforecast/ForecasterAutoregMultiVariate/tests/test_init.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.ForecasterAutoregMultiVariate import ForecasterAutoregMultiVariate
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 1 for calling a global function with example usage: test_init_TypeError_when_level_is_not_a_str() without return types