code: def test_against_statsmodels_fit_results():
      """Compare fit stats of sktime's AutoREG interface with statsmodels AutoREG,
      without exog data"""
      from statsmodels.tsa.ar_model import AutoReg as _AutoReg
  
      from sktime.datasets import load_airline
  
      # data
      data = load_airline()
      # fit
      sm_autoreg = _AutoReg(data, 2, trend="c")
      res = sm_autoreg.fit()
      autoreg_sktime = AutoREG(lags=2, trend="c")
      autoreg_sktime.fit(y=data, fh=None)
      temp_stats_dict = autoreg_sktime.get_fitted_params()
      stats_dict = {
          key: temp_stats_dict[key]
          for key in ["aic", "aicc", "bic", "hqic"]
      }
      sm_stats_dict = {
          "aic": res.aic,
          "aicc": res.aicc,
          "bic": res.bic,
          "hqic": res.hqic,
      }
      return assert_allclose(
          list(stats_dict.values()), list(sm_stats_dict.values())
      )
  
imports: import pytest
  from numpy.testing import assert_allclose
  from sktime.forecasting.auto_reg import AutoREG
  from sktime.forecasting.base import ForecastingHorizon
  from sktime.utils.validation._dependencies import _check_estimator_deps
label_desc: Use image node_id 2 for calling a global function with example usage: test_against_statsmodels_fit_results() and returns: assert_allclose