code: def test_intensifier_with_filled_runhistory(
      make_scenario, configspace_small, make_config_selector
  ):
      """Tests whether entries from the runhistory are incorporated."""
      scenario: Scenario = make_scenario(
          configspace_small, use_instances=True, n_instances=3
      )
      runhistory = RunHistory()
      intensifier = Intensifier(
          scenario=scenario, max_config_calls=3, seed=0
      )
      intensifier.config_selector = make_config_selector(
          scenario, runhistory, n_initial_configs=1
      )
      intensifier.runhistory = runhistory
      config = configspace_small.get_default_configuration()
      config2 = configspace_small.sample_configuration(1)
  
      # Add some entries to the runhistory
      runhistory.add(
          config=config,
          cost=0.5,
          time=0.0,
          instance=scenario.instances[1],
          seed=8,
          status=StatusType.RUNNING,
      )
  
      runhistory.add(
          config=config2,
          cost=0.5,
          time=0.0,
          instance=scenario.instances[1],
          seed=59,
          status=StatusType.SUCCESS,
      )
  
      # Now we post init
      intensifier.__post_init__()
  
      assert 8 in intensifier._tf_seeds
      assert 59 in intensifier._tf_seeds
  
      gen = iter(intensifier)
      trial = next(gen)
      assert trial.seed == 8 or trial.seed == 59
  
      # Make sure the configs are inside
      assert (config, 1) in intensifier._queue
  
      # Config 2 is not in the queue anymore because it is the only config which was successful
      # Therefore, it is the incumbent and not a challenger anymore
      assert (config2, 1) not in intensifier._queue
      assert config2 in intensifier.get_incumbents()
  
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 5 for calling a global function with example usage: test_intensifier_with_filled_runhistory(make_scenario, configspace_small, make_config_selector) without return types