code: def test_Sarimax_consolidate_kwargs_init_kwargs(kwargs, _init_kwargs):
      """
      Test if `sarimax._init_kwargs` are correctly consolidate.
      """
  
      sarimax = Sarimax(**kwargs)
      results = (sarimax._init_kwargs, sarimax.sm_init_kwargs)
  
      # First expected _init_kwargs, second sm_init_kwargs
      expected = (
          {
              "order": (1, 0, 0),
              "seasonal_order": (0, 0, 0, 0),
              "trend": None,
              "measurement_error": False,
              "time_varying_regression": False,
              "mle_regression": True,
              "simple_differencing": False,
              "enforce_stationarity": True,
              "enforce_invertibility": True,
              "hamilton_representation": False,
              "concentrate_scale": False,
              "trend_offset": 1,
              "use_exact_diffuse": False,
              "dates": None,
              "freq": None,
              "missing": "none",
              "validate_specification": True,
          },
          kwargs["sm_init_kwargs"],
      )
      expected[0].update(_init_kwargs)
  
      assert all(isinstance(x, dict) for x in results)
      assert results[0] == expected[0]
      assert results[1] == expected[1]
  
imports: import re
  import pytest
  import numpy
  import pandas
  from sklearn.exceptions import NotFittedError
  from skforecast.Sarimax import Sarimax
  from statsmodels.tsa.statespace.sarimax import SARIMAX
  from statsmodels.tsa.statespace.sarimax import SARIMAXResults
  from statsmodels.tsa.statespace.sarimax import SARIMAXResultsWrapper
  from .fixtures_Sarimax import y
  from .fixtures_Sarimax import y_lw
  from .fixtures_Sarimax import exog
  from .fixtures_Sarimax import exog_lw
  from .fixtures_Sarimax import exog_predict
  from .fixtures_Sarimax import exog_lw_predict
  from .fixtures_Sarimax import y_datetime
  from .fixtures_Sarimax import exog_datetime
  from .fixtures_Sarimax import exog_predict_datetime
label_desc: Use image node_id 4 for calling a global function with example usage: test_Sarimax_consolidate_kwargs_init_kwargs(kwargs, _init_kwargs) without return types