code: def test_Sarimax_get_info_criteria_ValueError_method_invalid_value():
      """
      Test Sarimax get_info_criteria ValueError when `method` is an invalid value.
      """
  
      sarimax = Sarimax(order=(1, 0, 1))
      sarimax.fit(y=y, exog=exog)
  
      method = "not_valid"
  
      err_msg = re.escape(
          (
              f"Invalid value for `method`. Valid options are 'standard' and "
              f"'lutkepohl'."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          sarimax.get_info_criteria(method=method)
  
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 25 for calling a global function with example usage: test_Sarimax_get_info_criteria_ValueError_method_invalid_value() without return types