code: def test_check_exog_TypeError_when_exog_not_series_or_dataframe(exog):
      """
      Check TypeError is raised when exog is not a pandas Series or a
      pandas DataFrame
      """
      err_msg = re.escape(
          "`exog` must be a pandas Series or DataFrame."
      )
      with pytest.raises(TypeError, match=err_msg):
          check_exog(exog=exog)
  
file_path: skforecast/skforecast/utils/tests/test_check_exog.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import check_exog
  from skforecast.exceptions import MissingValuesExogWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_exog_TypeError_when_exog_not_series_or_dataframe(exog) without return types