code: def test_trials_of_interest(make_scenario, configspace_small):
      """Tests whether we get the right trials of interests."""
      # Without instances
      scenario: Scenario = make_scenario(
          configspace_small,
          use_instances=False,
          min_budget=1,
          max_budget=3,
      )
      runhistory = RunHistory()
      intensifier = SuccessiveHalving(scenario=scenario)
      intensifier.runhistory = runhistory
      intensifier.__post_init__()
  
      # We expect to get only one trial of interest but with the highest budget (because real-value based)
      trials = intensifier.get_trials_of_interest(None)
      assert len(trials) == 1
      assert trials[0].budget == 3
  
      ################
      # With instances
      scenario: Scenario = make_scenario(
          configspace_small,
          use_instances=True,
          n_instances=5,
          min_budget=1,
          max_budget=10,
      )
      runhistory = RunHistory()
      intensifier = SuccessiveHalving(scenario=scenario, n_seeds=10)
      intensifier.runhistory = runhistory
      intensifier.__post_init__()
  
      # We receive 50 trials because n_instances*n_seeds
      # We need to receive all of them because of shuffling
      trials = intensifier.get_trials_of_interest(None)
      assert len(trials) == 5 * 10
      assert trials[0].budget is None
  
file_path: SMAC3/tests/test_intensifier/test_successive_halving.py
imports: import pytest
  from smac.initial_design.random_design import RandomInitialDesign
  from smac.intensifier.successive_halving import SuccessiveHalving
  from smac.main.config_selector import ConfigSelector
  from smac.runhistory.dataclasses import InstanceSeedBudgetKey
  from smac.runhistory.enumerations import StatusType
  from smac.runhistory.runhistory import RunHistory
  from smac.scenario import Scenario
label_desc: Use image node_id 10 for calling a global function with example usage: test_trials_of_interest(make_scenario, configspace_small) without return types