code: def _config(
      model_name: ModelName,
      evolutionary_strategy: EvolutionStrategyName,
  ):
      """Fixture that parametrizes the configuration used in the tests below."""
      backup: HEBO.Parameters = TestHEBO.config["parameters"]
      new_params: HEBO.Parameters = dataclasses.replace(
          backup,
          model_name=model_name,
          evolutionary_strategy=evolutionary_strategy,
      )
      # Replace the value in the Config.
      TestHEBO.config["parameters"] = new_params
      yield
      TestHEBO.config["parameters"] = backup
  
file_path: orion/tests/unittests/algo/long/hebo/test_hebo.py
imports: from __future__ import annotations
  import dataclasses
  import typing
  from typing import ClassVar
  import pytest
  from orion.algo.hebo.hebo_algo import HEBO, EvolutionStrategyName, ModelName, import_optional, properly_seeded_models
  from orion.testing.algo import BaseAlgoTests, TestPhase, first_phase_only
  from hebo.models.model_factory import model_dict
  from pymoo.factory import get_algorithm_options
label_desc: Use image node_id 4 for calling a global function with example usage: _config(model_name, evolutionary_strategy) without return types