class_docstr: Tests for the `HyperbandBracket` class.
class_docstr_tok: ["Tests","for","the","`","HyperbandBracket","`","class","."]
docstr: Test the creation of rungs for bracket 0.
docstr_tok: ["Test","the","creation","of","rungs","for","bracket","0","."]
code: def test_rungs_creation(self, bracket: HyperbandBracket):
      """Test the creation of rungs for bracket 0."""
      assert len(bracket.rungs) == 3
      assert bracket.rungs[0] == dict(
          n_trials=9, resources=1, results=dict()
      )
      assert bracket.rungs[1] == dict(
          n_trials=3, resources=3, results=dict()
      )
      assert bracket.rungs[2] == dict(
          n_trials=1, resources=9, results=dict()
      )
  
imports: from __future__ import annotations
  import copy
  import logging
  import typing
  from typing import Any, ClassVar, Sequence
  import numpy
  import pytest
  from orion.algo.hyperband import BudgetTuple, Hyperband, HyperbandBracket, RungDict, compute_budgets
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.utils.flatten import flatten
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import compare_trials, create_trial
label_desc: Use image node_id 1 for calling the TestHyperbandBracket obj's underlying member method code with example usage: obj.test_rungs_creation(bracket) without return types