code: def test_IgnoredArgumentWarning_when_skforecast_Sarimax_and_fit_kwargs():
      """
      Test IgnoredArgumentWarning is raised when `fit_kwargs` is not None when
      using the skforecast Sarimax model.
      """
      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 = ForecasterSarimax(
              regressor=Sarimax(order=(1, 0, 1)),
              fit_kwargs={"warning": 1},
          )
  
      assert forecaster.fit_kwargs == {}
  
file_path: skforecast/skforecast/ForecasterSarimax/tests/test_init.py
imports: import re
  import pytest
  from pytest import approx
  import numpy
  import pandas
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from skforecast.exceptions import IgnoredArgumentWarning
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 4 for calling a global function with example usage: test_IgnoredArgumentWarning_when_skforecast_Sarimax_and_fit_kwargs() without return types