code: def test_check_exog_dtypes_TypeError_when_exog_is_Series_with_no_int_categories():
      """
      Check TypeError is raised when exog is pandas Series with no integer
      categories.
      """
      err_msg = re.escape(
          (
              "If exog is of type category, it must contain only integer values. "
              "See skforecast docs for more info about how to include categorical "
              "features https://skforecast.org/"
              "latest/user_guides/categorical-features.html"
          )
      )
      with pytest.raises(TypeError, match=err_msg):
          check_exog_dtypes(
              pd.Series(["A", "B", "C"], dtype="category")
          )
  
file_path: skforecast/skforecast/utils/tests/test_check_exog_dtypes.py
imports: import re
  import pytest
  import numpy
  import pandas
  from skforecast.utils import check_exog_dtypes
  from skforecast.exceptions import DataTypeWarning
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_exog_dtypes_TypeError_when_exog_is_Series_with_no_int_categories() without return types