code: def test_check_exog_dtypes_DataTypeWarning_when_exog_has_bool_values(
      exog,
  ):
      """
      Check DataTypeWarning is issued when exog is pandas Series or DataFrame
      with missing values.
      """
      warn_msg = re.escape(
          (
              "`exog` may contain only `int`, `float` or `category` dtypes. Most "
              "machine learning models do not allow other types of values. "
              "Fitting the forecaster may fail."
          )
      )
      with pytest.warns(DataTypeWarning, match=warn_msg):
          check_exog_dtypes(exog)
  
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 2 for calling a global function with example usage: test_check_exog_dtypes_DataTypeWarning_when_exog_has_bool_values(exog) without return types