code: def test_SobolGeneratorFallbackToPolytopeSamplerWithFixedParam(
      self,
  ) -> None:
      # Ten parameters with sum less than 1. In this example, the rejection
      # sampler gives a search space exhausted error.  Testing fallback to
      # polytope sampler when encountering this error.
      generator = SobolGenerator(
          seed=0, fallback_to_sample_polytope=True
      )
      bounds = self._create_bounds(n_tunable=10, n_fixed=1)
      A = np.insert(np.ones((1, 10)), 10, 0, axis=1)
      b = np.array([1]).reshape((1, 1))
      generated_points, weights = generator.gen(
          n=3,
          bounds=bounds,
          linear_constraints=(
              A,
              b,
          ),
          fixed_features={10: 1},
          rounding_func=lambda x: x,
      )
      self.assertTrue(np.shape(generated_points) == (3, 11))
      self.assertTrue(np.alltrue(generated_points[..., -1] == 1))
      self.assertTrue(np.alltrue(generated_points @ A.transpose() <= b))
  
imports: from typing import List, Tuple
  from unittest import mock
  import numpy
  from ax.exceptions.core import SearchSpaceExhausted
  from ax.models.random.sobol import SobolGenerator
  from ax.utils.common.testutils import TestCase
  from botorch.utils.sampling import sample_polytope
label_desc: Use image node_id 10 for calling the SobolGeneratorTest obj's underlying member method code with example usage: obj.test_SobolGeneratorFallbackToPolytopeSamplerWithFixedParam() without return types