code: def test_initialization(make_scenario, configspace_small):
      """Tests whether HB is initialized correctly."""
      scenario: Scenario = make_scenario(
          configspace_small,
          use_instances=True,
          n_instances=100,
          min_budget=1,
          max_budget=81,
      )
      runhistory = RunHistory()
      intensifier = Hyperband(
          scenario=scenario,
          eta=3,
      )
      intensifier.runhistory = runhistory
      intensifier.__post_init__()
  
      # Test table 1 from https://arxiv.org/pdf/1603.06560.pdf
      assert intensifier._max_iterations[0] == 5
      assert intensifier._max_iterations[1] == 4
      assert intensifier._max_iterations[2] == 3
      assert intensifier._max_iterations[3] == 2
      assert intensifier._max_iterations[4] == 1
  
      assert intensifier._n_configs_in_stage[0] == [81, 27, 9, 3, 1]
      assert intensifier._n_configs_in_stage[1] == [34, 11, 3, 1]
      assert intensifier._n_configs_in_stage[2] == [15, 5, 1]
      assert intensifier._n_configs_in_stage[3] == [8, 2]
      assert intensifier._n_configs_in_stage[4] == [5]
  
      assert intensifier._budgets_in_stage[0] == [1, 3, 9, 27, 81]
      assert intensifier._budgets_in_stage[1] == [3, 9, 27, 81]
      assert intensifier._budgets_in_stage[2] == [9, 27, 81]
      assert intensifier._budgets_in_stage[3] == [27, 81]
      assert intensifier._budgets_in_stage[4] == [81]
  
imports: from smac.initial_design.random_design import RandomInitialDesign
  from smac.intensifier.hyperband import Hyperband
  from smac.main.config_selector import ConfigSelector
  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_initialization(make_scenario, configspace_small) without return types