code: def test_set_fit_kwargs_skforecast():
      """
      Test set_fit_kwargs method using skforecast.
      """
      forecaster = ForecasterSarimax(regressor=Sarimax(order=(1, 0, 1)))
      new_fit_kwargs = {"warning": 1}
  
      warn_msg = re.escape(
          (
              "When using the skforecast Sarimax model, the fit kwargs should "
              "be passed using the model parameter `sm_fit_kwargs`."
          )
      )
      with pytest.warns(IgnoredArgumentWarning, match=warn_msg):
          forecaster.set_fit_kwargs(new_fit_kwargs)
  
      assert forecaster.fit_kwargs == {}
  
file_path: skforecast/skforecast/ForecasterSarimax/tests/test_set_fit_kwargs.py
imports: import re
  import pytest
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from skforecast.exceptions import IgnoredArgumentWarning
label_desc: Use image node_id 2 for calling a global function with example usage: test_set_fit_kwargs_skforecast() without return types