code: def test_initialization_with_instances(
      make_scenario, configspace_small, make_config_selector
  ):
      """Tests whether SH is initialized correctly."""
      scenario: Scenario = make_scenario(
          configspace_small,
          use_instances=True,
          n_instances=3,
          min_budget=1,
          max_budget=6,
      )
      runhistory = RunHistory()
      intensifier = SuccessiveHalving(
          scenario=scenario,
          eta=2,
          n_seeds=2,
          instance_seed_order=None,
          incumbent_selection="any_budget",
      )
      intensifier.config_selector = make_config_selector(
          scenario, runhistory, n_initial_configs=1
      )
      intensifier.runhistory = runhistory
      intensifier.__post_init__()
  
      assert intensifier._eta == 2
      assert intensifier._min_budget == 1
      assert intensifier._max_budget == 6
      assert intensifier._n_configs_in_stage[0] == [4, 2, 1]
      assert intensifier._budgets_in_stage[0] == [1.5, 3.0, 6.0]
      assert len(intensifier.get_instance_seed_keys_of_interest()) == 6
  
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 2 for calling a global function with example usage: test_initialization_with_instances(make_scenario, configspace_small, make_config_selector) without return types