class_docstr: Tests for the algo Hyperband.
class_docstr_tok: ["Tests","for","the","algo","Hyperband","."]
docstr: Test that suggest None when search space is empty
docstr_tok: ["Test","that","suggest","None","when","search","space","is","empty"]
code: def test_suggest_in_finite_cardinality(self):
      """Test that suggest None when search space is empty"""
      space = Space()
      space.register(Integer("yolo1", "uniform", 0, 5))
      space.register(Fidelity("epoch", 1, 9, 3))
  
      hyperband = Hyperband(space, repetitions=1)
      for i in range(6):
          force_observe(
              hyperband,
              create_trial(
                  (1, i),
                  names=("epoch", "yolo1"),
                  types=("fidelity", "integer"),
                  results={"objective": i},
              ),
          )
  
      assert hyperband.suggest(100) == []
  
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 12 for calling the TestHyperband obj's underlying member method code with example usage: obj.test_suggest_in_finite_cardinality() without return types