code: def test_w_robust_search_space(self) -> None:
      rss = get_robust_search_space()
      # Raises an error in __init__.
      with self.assertRaisesRegex(
          UnsupportedError, "transform is not supported"
      ):
          SearchSpaceToChoice(
              search_space=rss,
              observations=[],
          )
  
file_path: Ax/ax/modelbridge/transforms/tests/test_search_space_to_choice_transform.py
imports: from copy import deepcopy
  import numpy
  from ax.core.arm import Arm
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.core.parameter import ChoiceParameter, FixedParameter, ParameterType, RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.exceptions.core import UnsupportedError
  from ax.modelbridge.transforms.search_space_to_choice import SearchSpaceToChoice
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_robust_search_space
label_desc: Use image node_id 5 for calling the SearchSpaceToChoiceTest obj's underlying member method code with example usage: obj.test_w_robust_search_space() without return types