class_docstr: Tests for the algo Hyperband.
class_docstr_tok: ["Tests","for","the","algo","Hyperband","."]
docstr: Test that correct point is promoted and returned.
docstr_tok: ["Test","that","correct","point","is","promoted","and","returned","."]
code: def test_suggest_promote(
      self,
      hyperband: Hyperband,
      bracket: HyperbandBracket,
      rung_0: RungDict,
  ):
      """Test that correct point is promoted and returned."""
      hyperband.brackets = [bracket]
      assert bracket.owner is hyperband
      bracket.rungs[0] = rung_0
  
      points = hyperband.suggest(100)
      assert points is not None
      assert len(points) == 3
      assert points[0].params == {"epoch": 3, "lr": 0}
      assert points[1].params == {"epoch": 3, "lr": 1}
      assert points[2].params == {"epoch": 3, "lr": 2}
  
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 13 for calling the TestHyperband obj's underlying member method code with example usage: obj.test_suggest_promote(hyperband, bracket, rung_0) without return types