code: def test_next_bracket(make_scenario, configspace_small):
      """Tests whether next bracket works as expected."""
      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__()
  
      for _ in range(20):
          next_bracket = intensifier._get_next_bracket()
          assert next_bracket in intensifier._budgets_in_stage
  
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 2 for calling a global function with example usage: test_next_bracket(make_scenario, configspace_small) without return types