code: def test_output_evaluate_grid_hyperparameters_sarimax_metric_list_with_mocked():
      """
      Test output of _evaluate_grid_hyperparameters_sarimax in ForecasterSarimax
      with multiple metrics with mocked (mocked done in Skforecast v0.7.0).
      """
      forecaster = ForecasterSarimax(
          regressor=Sarimax(
              order=(3, 2, 0), maxiter=1000, method="cg", disp=False
          )
      )
  
      param_grid = [
          {"order": (3, 2, 0), "trend": None},
          {"order": (3, 2, 0), "trend": "c"},
      ]
  
      results = _evaluate_grid_hyperparameters_sarimax(
          forecaster=forecaster,
          y=y_datetime,
          param_grid=param_grid,
          steps=3,
          refit=True,
          metric=[mean_absolute_error, "mean_squared_error"],
          initial_train_size=len(y_datetime) - 12,
          fixed_train_size=False,
          return_best=False,
          verbose=False,
      )
  
      expected_results = pd.DataFrame(
          data={
              "params": [
                  {"order": (3, 2, 0), "trend": None},
                  {"order": (3, 2, 0), "trend": "c"},
              ],
              "mean_absolute_error": np.array([0.15724498, 0.16638452]),
              "mean_squared_error": np.array([0.0387042, 0.04325543]),
              "order": [(3, 2, 0), (3, 2, 0)],
              "trend": [None, "c"],
          },
          index=pd.Index(np.array([0, 1]), dtype="int64"),
      )
  
      pd.testing.assert_frame_equal(
          results, expected_results, atol=0.0001
      )
  
imports: import re
  import pytest
  import platform
  import numpy
  import pandas
  from sklearn.metrics import mean_absolute_error
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from skforecast.model_selection_sarimax.model_selection_sarimax import _evaluate_grid_hyperparameters_sarimax
  from tqdm import tqdm
  from functools import partialmethod
  from ...ForecasterSarimax.tests.fixtures_ForecasterSarimax import y_datetime
  from ...ForecasterSarimax.tests.fixtures_ForecasterSarimax import exog_datetime
label_desc: Use image node_id 5 for calling a global function with example usage: test_output_evaluate_grid_hyperparameters_sarimax_metric_list_with_mocked() without return types