code: def space():
      """Create a Space with a real dimension and a fidelity value."""
      space = Space()
      space.register(Real("lr", "uniform", 0, 1))
      # NOTE: Slightly different value than HyperBand (which has (1, 9, 3))
      space.register(Fidelity("epoch", 1, 9, 1))
      return space
  
imports: from __future__ import annotations
  import copy
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import create_rung_from_points, create_trial_for_hb
  from orion.algo.evolution_es import BracketEVES, BudgetTuple, EvolutionES, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Real, Space
  from orion.core.utils import backward
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase, _are_equal
  from orion.testing.trial import create_trial
label_desc: Use image node_id 1 for calling a global function with example usage: space() and returns: space