code: def test_TransformSearchSpace(self) -> None:
      ss2 = deepcopy(self.search_space)
      ss2 = self.t.transform_search_space(ss2)
  
      # Parameter type fixed.
      self.assertEqual(
          ss2.parameters["x"].parameter_type, ParameterType.FLOAT
      )
      self.assertEqual(
          ss2.parameters["a"].parameter_type, ParameterType.INT
      )
      self.assertEqual(
          ss2.parameters["b" + OH_PARAM_INFIX + "_0"].parameter_type,
          ParameterType.FLOAT,
      )
      self.assertEqual(
          ss2.parameters["b" + OH_PARAM_INFIX + "_1"].parameter_type,
          ParameterType.FLOAT,
      )
      self.assertEqual(
          ss2.parameters["c" + OH_PARAM_INFIX].parameter_type,
          ParameterType.FLOAT,
      )
      self.assertEqual(
          ss2.parameters["d"].parameter_type, ParameterType.FLOAT
      )
  
      # Parameter range fixed to [0,1].
      # pyre-fixme[16]: `Parameter` has no attribute `lower`.
      self.assertEqual(
          ss2.parameters["b" + OH_PARAM_INFIX + "_0"].lower, 0.0
      )
      # pyre-fixme[16]: `Parameter` has no attribute `upper`.
      self.assertEqual(
          ss2.parameters["b" + OH_PARAM_INFIX + "_1"].upper, 1.0
      )
      self.assertEqual(ss2.parameters["c" + OH_PARAM_INFIX].lower, 0.0)
      self.assertEqual(ss2.parameters["c" + OH_PARAM_INFIX].upper, 1.0)
  
      # Ensure we error if we try to transform a fidelity parameter
      ss3 = SearchSpace(
          parameters=[
              ChoiceParameter(
                  "b",
                  parameter_type=ParameterType.STRING,
                  values=["a", "b", "c"],
                  is_fidelity=True,
                  target_value="c",
              )
          ]
      )
      t = OneHot(search_space=ss3, observations=[])
      with self.assertRaises(ValueError):
          t.transform_search_space(ss3)
  
file_path: Ax/ax/modelbridge/transforms/tests/test_one_hot_transform.py
imports: from copy import deepcopy
  from ax.core.observation import ObservationFeatures
  from ax.core.parameter import ChoiceParameter, ParameterType, RangeParameter
  from ax.core.parameter_constraint import ParameterConstraint
  from ax.core.search_space import RobustSearchSpace, SearchSpace
  from ax.modelbridge.transforms.one_hot import OH_PARAM_INFIX, OneHot
  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 OneHotTransformTest obj's underlying member method code with example usage: obj.test_TransformSearchSpace() without return types