code: def test_no_fidelity(self):
      space = self.create_space(
          {"x": "uniform(0, 1)", "y": "uniform(0, 1)"}
      )
  
      with pytest.raises(
          RuntimeError,
          match="PBT cannot be used if space does not contain",
      ):
          self.create_algo(space=space)
  
imports: from __future__ import annotations
  import functools
  import logging
  from typing import ClassVar
  import numpy
  import pytest
  from base import ExploitStub, ExploreStub, sample_trials
  from pytest_mock import MockerFixture
  from orion.algo.pbt.pbt import PBT, compute_fidelities
  from orion.algo.space import Space
  from orion.core.worker.primary_algo import SpaceTransform, create_algo
  from orion.core.worker.transformer import ReshapedSpace, TransformedSpace
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase
label_desc: Use image node_id 1 for calling the TestGenericPBT obj's underlying member method code with example usage: obj.test_no_fidelity() without return types