code: def test_Sarimax_summary(y, exog):
      """
      Test Sarimax params after fit with pandas `y` and `exog`.
      """
  
      sarimax = Sarimax(order=(1, 0, 1))
      sarimax.fit(y=y, exog=exog)
  
      # Only 316 characters are checked because the summary includes the date and time of the training
      results = sarimax.summary().as_text()[:316]
      expected = (
          "                               SARIMAX Results                                \n"
          "==============================================================================\n"
          "Dep. Variable:                      y   No. Observations:                   50\n"
          "Model:               SARIMAX(1, 0, 1)   Log Likelihood                  42.591\n"
      )
  
      assert results == expected
  
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 23 for calling a global function with example usage: test_Sarimax_summary(y, exog) without return types