class_docstr: Tests for the algo Hyperband.
class_docstr_tok: ["Tests","for","the","algo","Hyperband","."]
docstr: Test that sampling inf collisions will return None.
docstr_tok: ["Test","that","sampling","inf","collisions","will","return","None","."]
code: def test_suggest_inf_duplicates(
      self,
      monkeypatch,
      hyperband: Hyperband,
      bracket: HyperbandBracket,
      rung_0: RungDict,
      rung_1: RungDict,
      rung_2: RungDict,
  ):
      """Test that sampling inf collisions will return None."""
      hyperband.brackets = [bracket]
      assert bracket.owner is hyperband
  
      zhe_trial = create_trial_for_hb(("fidelity", 0.0))
      hyperband.trial_to_brackets[
          hyperband.get_id(zhe_trial, ignore_fidelity=True)
      ] = 0
  
      mock_samples(hyperband, [zhe_trial] * 2)
  
      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 11 for calling the TestHyperband obj's underlying member method code with example usage: obj.test_suggest_inf_duplicates(monkeypatch, hyperband, bracket, rung_0, rung_1, rung_2) without return types