code: def test_SARIMAX_against_statsmodels():
      """Compares Sktime's and Statsmodel's SARIMAX."""
      from statsmodels.tsa.api import SARIMAX as _SARIMAX
  
      df = make_forecasting_problem()
  
      sktime_model = SARIMAX(
          order=(1, 0, 0), trend="t", seasonal_order=(1, 0, 0, 6)
      )
      sktime_model.fit(df)
      y_pred = sktime_model.predict(df.index)
  
      stats = _SARIMAX(
          endog=df,
          order=(1, 0, 0),
          trend="t",
          seasonal_order=(1, 0, 0, 6),
      )
      stats_fit = stats.fit()
      stats_pred = stats_fit.predict(df.index[0])
      assert_allclose(y_pred.tolist(), stats_pred.tolist())
  
file_path: sktime/sktime/forecasting/tests/test_sarimax.py
imports: import pytest
  from numpy.testing import assert_allclose
  from pandas.testing import assert_frame_equal
  from sktime.forecasting.sarimax import SARIMAX
  from sktime.tests.test_switch import run_test_for_class
  from sktime.utils._testing.forecasting import make_forecasting_problem
label_desc: Use image node_id 1 for calling a global function with example usage: test_SARIMAX_against_statsmodels() without return types