code: def test_compute_compressed_budgets():
      """Verify proper computation of budgets when scale is small and integer rounding creates
      duplicates
      """
      assert compute_budgets(1, 16, 2, 10, 1) == [
          [
              (512, 1),
              (256, 2),
              (128, 3),
              (64, 4),
              (32, 5),
              (16, 6),
              (8, 7),
              (4, 9),
              (2, 12),
              (1, 16),
          ]
      ]
  
      with pytest.raises(ValueError) as exc:
          compute_budgets(1, 2, 2, 10, 1)
  
      assert "Cannot build budgets below max_resources" in str(
          exc.value
      )
  
imports: from __future__ import annotations
  import hashlib
  import logging
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import compare_registered_trial, create_rung_from_points, create_trial_for_hb, force_observe
  from orion.algo.asha import ASHA, ASHABracket, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import create_trial
label_desc: Use image node_id 11 for calling a global function with example usage: test_compute_compressed_budgets() without return types