code: def test_trials_of_interest(
      make_scenario, configspace_small, make_config_selector
  ):
      """Tests whether the trials of interests are as expected."""
  
      scenario = make_scenario(
          configspace_small, use_instances=True, n_instances=3
      )
      runhistory = RunHistory()
      intensifier = Intensifier(
          scenario=scenario, max_config_calls=10, seed=0
      )
      intensifier.config_selector = make_config_selector(
          scenario, runhistory
      )
      intensifier.runhistory = runhistory
      intensifier.__post_init__()
  
      trials = intensifier.get_trials_of_interest(None)
      assert len(trials) == 10
      assert trials[0].seed == trials[1].seed == trials[2].seed
      assert trials[2].seed != trials[3].seed
      assert (
          trials[0].instance != trials[1].instance != trials[2].instance
      )
      assert trials[0].instance == trials[3].instance
  
      # Test validation
      val_trials = intensifier.get_trials_of_interest(
          None, validate=True, seed=8888
      )
      assert len(val_trials) == 10
      assert (
          val_trials[0].seed == val_trials[1].seed == val_trials[2].seed
      )
      assert val_trials[2].seed != val_trials[3].seed
      assert (
          val_trials[0].instance
          != val_trials[1].instance
          != val_trials[2].instance
      )
      assert val_trials[0].instance == val_trials[3].instance
  
      # We expect different seeds for the validation runs
      assert trials[0].seed != val_trials[0].seed
      assert trials[3].seed != val_trials[3].seed
  
      # But the same instances
      assert trials[0].instance == val_trials[0].instance
      assert trials[3].instance == val_trials[3].instance
  
file_path: SMAC3/tests/test_intensifier/test_intensifier.py
imports: from smac.initial_design.random_design import RandomInitialDesign
  from smac.intensifier.intensifier import Intensifier
  from smac.main.config_selector import ConfigSelector
  from smac.runhistory.enumerations import StatusType
  from smac.runhistory.runhistory import RunHistory
  from smac.scenario import Scenario
label_desc: Use image node_id 1 for calling a global function with example usage: test_trials_of_interest(make_scenario, configspace_small, make_config_selector) without return types