code: def test_bayesian_search_skopt_exception_when_search_space_names_do_not_match():  # pragma: no cover
      """
      Test Exception is raised when search_space key name do not match the Space
      object name from skopt.
      """
      forecaster = ForecasterAutoreg(
          regressor=Ridge(random_state=123),
          lags=2,  # Placeholder, the value will be overwritten
      )
  
      steps = 3
      n_validation = 12
      y_train = y[:-n_validation]
      lags_grid = [2, 4]
      search_space = {
          "not_alpha": Real(0.01, 1.0, "log-uniform", name="alpha")
      }
  
      err_msg = re.escape(
          f"""Some of the key values do not match the Space object name from skopt.
                      not_alpha != alpha"""
      )
      with pytest.raises(ValueError, match=err_msg):
          _bayesian_search_skopt(
              forecaster=forecaster,
              y=y,
              lags_grid=lags_grid,
              search_space=search_space,
              steps=steps,
              metric="mean_absolute_error",
              refit=True,
              initial_train_size=len(y_train),
              fixed_train_size=True,
              n_trials=10,
              random_state=123,
              return_best=False,
              verbose=False,
          )
  
imports: import re
  import pytest
  import numpy
  import pandas
  import sys
  from pytest import approx
  from importlib import metadata
  from sklearn.ensemble import RandomForestRegressor
  from sklearn.linear_model import Ridge
  from sklearn.metrics import mean_absolute_error
  from skforecast.ForecasterAutoreg import ForecasterAutoreg
  from skforecast.ForecasterAutoregCustom import ForecasterAutoregCustom
  from skforecast.model_selection import backtesting_forecaster
  from .fixtures_model_selection import y
  from tqdm import tqdm
  from functools import partialmethod
label_desc: Use image node_id 2 for calling a global function with example usage: test_bayesian_search_skopt_exception_when_search_space_names_do_not_match() without return types