code: def test_parego(facade, make_scenario, configspace):
      """Tests whether ParEGO works."""
      N_TRIALS = 64
      RETRAIN_AFTER = 8
  
      scenario: Scenario = make_scenario(
          configspace, use_multi_objective=True, n_trials=N_TRIALS
      )
      multi_objective_algorithm = WrapStrategy(
          ParEGO, scenario=scenario
      )
      intensifier = Intensifier(
          scenario, max_config_calls=1, max_incumbents=10
      )
      config_selector = ConfigSelector(
          scenario, retrain_after=RETRAIN_AFTER
      )
      initial_design = RandomInitialDesign(scenario, n_configs=1)
  
      smac = facade(
          scenario=scenario,
          target_function=tae,
          multi_objective_algorithm=multi_objective_algorithm,
          intensifier=intensifier,
          config_selector=config_selector,
          initial_design=initial_design,
          overwrite=True,
      )
      incumbents = smac.optimize()
  
      sorted_incumbents = []
      for incumbent in incumbents:
          x, y = func(incumbent["x"])
          sorted_incumbents.append((x, y))
  
      sorted_incumbents = sorted(sorted_incumbents, key=lambda x: x[0])
      previous_y = np.inf
      for x, y in sorted_incumbents:
          assert y <= previous_y
          previous_y = y
  
      # We expect N_TRIALS/RETRAIN_AFTER updates
      assert (
          multi_objective_algorithm._n_calls_update_on_iteration_start
          == int(N_TRIALS / RETRAIN_AFTER)
      )
  
imports: from __future__ import annotations
  import numpy
  import pytest
  from ConfigSpace import ConfigurationSpace, Float
  from smac import AlgorithmConfigurationFacade
  from smac import BlackBoxFacade
  from smac import HyperbandFacade
  from smac import HyperparameterOptimizationFacade
  from smac import MultiFidelityFacade
  from smac import RandomFacade
  from smac import Scenario
  from smac.initial_design.random_design import RandomInitialDesign
  from smac.intensifier.intensifier import Intensifier
  from smac.main.config_selector import ConfigSelector
  from smac.multi_objective import AbstractMultiObjectiveAlgorithm
  from smac.multi_objective.aggregation_strategy import MeanAggregationStrategy
  from smac.multi_objective.parego import ParEGO
  from smac.scenario import Scenario
label_desc: Use image node_id 5 for calling a global function with example usage: test_parego(facade, make_scenario, configspace) without return types