code: def test_check_select_fit_kwargs_IgnoredArgumentWarning_when_fit_kwargs_has_arguments_not_in_fit():
      """
      Test check_select_fit_kwargs issues IgnoredArgumentWarning when fit_kwargs
      has arguments not in regressor fit method.
      """
      fit_kwargs = {"no_valid_argument": 10}
      regressor = LGBMRegressor()
      non_used_keys = [
          k
          for k in fit_kwargs.keys()
          if k not in inspect.signature(regressor.fit).parameters
      ]
  
      warn_msg = re.escape(
          (
              f"Argument/s {non_used_keys} ignored since they are not used by the "
              f"regressor's `fit` method."
          )
      )
      with pytest.warns(IgnoredArgumentWarning, match=warn_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 2 for calling a global function with example usage: test_check_select_fit_kwargs_IgnoredArgumentWarning_when_fit_kwargs_has_arguments_not_in_fit() without return types