code: def test_check_select_fit_kwargs_raise_TypeError_when_fit_kwargs_is_not_dict():
      """
      Test check_select_fit_kwargs raises TypeError when fit_kwargs is not a dictionary.
      """
      fit_kwargs = "not_dict"
      regressor = LGBMRegressor()
  
      err_msg = re.escape(
          f"Argument `fit_kwargs` must be a dict. Got {type(fit_kwargs)}."
      )
      with pytest.raises(TypeError, match=err_msg):
          check_select_fit_kwargs(
              regressor=regressor, fit_kwargs=fit_kwargs
          )
  
file_path: skforecast/skforecast/utils/tests/test_check_select_fit_kwargs.py
imports: import re
  import pytest
  import inspect
  from skforecast.exceptions import IgnoredArgumentWarning
  from skforecast.utils import check_select_fit_kwargs
  from lightgbm import LGBMRegressor
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_select_fit_kwargs_raise_TypeError_when_fit_kwargs_is_not_dict() without return types