code: def test_hyperband_oracle_bracket_configs(tmp_path):
      oracle = hyperband_module.HyperbandOracle(
          objective=keras_tuner.Objective("score", "max"),
          hyperband_iterations=1,
          max_epochs=8,
          factor=2,
      )
      oracle._set_project_dir(tmp_path, "untitled")
  
      # 8, 4, 2, 1 starting epochs.
      assert oracle._get_num_brackets() == 4
  
      assert oracle._get_num_rounds(bracket_num=3) == 4
      assert oracle._get_size(bracket_num=3, round_num=0) == 8
      assert oracle._get_epochs(bracket_num=3, round_num=0) == 1
      assert oracle._get_size(bracket_num=3, round_num=3) == 1
      assert oracle._get_epochs(bracket_num=3, round_num=3) == 8
  
      assert oracle._get_num_rounds(bracket_num=0) == 1
      assert oracle._get_size(bracket_num=0, round_num=0) == 4
      assert oracle._get_epochs(bracket_num=0, round_num=0) == 8
  
file_path: keras-tuner/keras_tuner/tuners/hyperband_test.py
imports: import numpy
  import pytest
  import keras_tuner
  from keras_tuner import backend
  from keras_tuner import utils
  from keras_tuner.backend import keras
  from keras_tuner.engine import tuner_utils
  from keras_tuner.tuners import hyperband
label_desc: Use image node_id 2 for calling a global function with example usage: test_hyperband_oracle_bracket_configs(tmp_path) without return types