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