code: def test_UniformGeneratorFixedSpace(self) -> None:
      generator = UniformGenerator(seed=0)
      bounds = self._create_bounds(n_tunable=0, n_fixed=2)
      n = 3
      with self.assertRaises(SearchSpaceExhausted):
          generator.gen(
              n=3,
              bounds=bounds,
              fixed_features={0: 1, 1: 2},
              rounding_func=lambda x: x,
          )
      generator = UniformGenerator(seed=0, deduplicate=False)
      generated_points, _ = generator.gen(
          n=3,
          bounds=bounds,
          fixed_features={0: 1, 1: 2},
          rounding_func=lambda x: x,
      )
      expected_points = np.tile(np.array([[1, 2]]), (n, 1))
      self.assertTrue(
          np.shape(expected_points) == np.shape(generated_points)
      )
      self.assertTrue(np.allclose(expected_points, generated_points))
  
file_path: Ax/ax/models/tests/test_uniform.py
imports: import numpy
  from ax.exceptions.core import SearchSpaceExhausted
  from ax.models.random.uniform import UniformGenerator
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 4 for calling the UniformGeneratorTest obj's underlying member method code with example usage: obj.test_UniformGeneratorFixedSpace() without return types