code: def test_output_backtesting_sarimax_no_refit_yes_exog_callable_metric_with_mocked():
      """
      Test output of backtesting_sarimax with backtesting mocked, Series y is mocked, yes exog,
      no refit, 12 observations to backtest, steps=3 (no remainder), callable metric.
      Mocked done with skforecast 0.7.0.
      """
      forecaster = ForecasterSarimax(
          regressor=Sarimax(
              order=(3, 2, 0), maxiter=1000, method="cg", disp=False
          )
      )
  
      metric, backtest_predictions = backtesting_sarimax(
          forecaster=forecaster,
          y=y_datetime,
          exog=exog_datetime,
          steps=3,
          metric=my_metric,
          initial_train_size=len(y_datetime) - 12,
          fixed_train_size=False,
          refit=False,
          alpha=None,
          interval=None,
          verbose=False,
      )
  
      expected_metric = 0.007364452865679387
      expected_preds = pd.DataFrame(
          data=np.array(
              [
                  0.59409098,
                  0.78323365,
                  0.99609033,
                  0.87882152,
                  1.02722143,
                  1.16176993,
                  0.85860472,
                  0.86636317,
                  0.68987477,
                  0.17788782,
                  -0.13577,
                  -0.50570715,
              ]
          ),
          columns=["pred"],
          index=pd.date_range(start="2038", periods=12, freq="A"),
      )
  
      assert expected_metric == approx(metric, abs=0.0001)
      pd.testing.assert_frame_equal(
          expected_preds, backtest_predictions, atol=0.0001
      )
  
imports: import re
  import pytest
  import platform
  from pytest import approx
  import numpy
  import pandas
  from sklearn.linear_model import Ridge
  from pmdarima.arima import ARIMA
  from skforecast.Sarimax import Sarimax
  from skforecast.ForecasterAutoreg import ForecasterAutoreg
  from skforecast.ForecasterSarimax import ForecasterSarimax
  from skforecast.model_selection_sarimax import backtesting_sarimax
  from ...ForecasterSarimax.tests.fixtures_ForecasterSarimax import y_datetime
  from ...ForecasterSarimax.tests.fixtures_ForecasterSarimax import exog_datetime
label_desc: Use image node_id 12 for calling a global function with example usage: test_output_backtesting_sarimax_no_refit_yes_exog_callable_metric_with_mocked() without return types