code: def test_transform_series_TypeError_when_series_is_not_pandas_series():
      """
      Test TypeError is raised when series is not a pandas series.
      """
      series = np.arange(10)
  
      err_msg = re.escape(
          f"`series` argument must be a pandas Series. Got {type(series)}"
      )
      with pytest.raises(TypeError, match=err_msg):
          transform_series(
              series=series,
              transformer=None,
              fit=True,
              inverse_transform=False,
          )
  
file_path: skforecast/skforecast/utils/tests/test_transform_series.py
imports: import re
  import pytest
  import numpy
  import pandas
  from sklearn.preprocessing import StandardScaler
  from sklearn.preprocessing import OneHotEncoder
  from skforecast.utils import transform_series
label_desc: Use image node_id 1 for calling a global function with example usage: test_transform_series_TypeError_when_series_is_not_pandas_series() without return types