code: def test_ForecasterSarimax_get_info_criteria_ValueError_criteria_invalid_value():
      """
      Test ForecasterSarimax get_info_criteria ValueError when `criteria` is an invalid value.
      """
      forecaster = ForecasterSarimax(regressor=Sarimax(order=(1, 1, 1)))
      forecaster.fit(y=y)
  
      criteria = "not_valid"
  
      err_msg = re.escape(
          (
              f"Invalid value for `criteria`. Valid options are 'aic', 'bic', "
              f"and 'hqic'."
          )
      )
      with pytest.raises(ValueError, match=err_msg):
          forecaster.get_info_criteria(criteria=criteria)
  
file_path: skforecast/skforecast/ForecasterSarimax/tests/test_get_info_criteria.py
imports: import re
  import pytest
  from pytest import approx
  import numpy
  import pandas
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from skforecast.exceptions import IgnoredArgumentWarning
  from sklearn.linear_model import LinearRegression
  from .fixtures_ForecasterSarimax import y
  from .fixtures_ForecasterSarimax import y_datetime
label_desc: Use image node_id 1 for calling a global function with example usage: test_ForecasterSarimax_get_info_criteria_ValueError_criteria_invalid_value() without return types