code: def test_TransformSearchSpace(self) -> None:
      ss2 = deepcopy(self.search_space)
      ss2 = self.t.transform_search_space(ss2)
  
      for p in ("x", "a", "b", "c"):
          self.assertIsInstance(ss2.parameters[p], RangeParameter)
      self.assertIsInstance(ss2.parameters["d"], ChoiceParameter)
      self.assertEqual(
          ss2.parameters["x"].parameter_type, ParameterType.FLOAT
      )
      for p in ("a", "b", "c"):
          self.assertEqual(
              ss2.parameters[p].parameter_type, ParameterType.INT
          )
      self.assertEqual(
          ss2.parameters["d"].parameter_type, ParameterType.STRING
      )
  
      self.assertEqual(ss2.parameters["b"].lower, 0)
      self.assertEqual(ss2.parameters["b"].upper, 2)
      self.assertEqual(ss2.parameters["c"].lower, 0)
      self.assertEqual(ss2.parameters["c"].upper, 2)
      self.assertEqual(ss2.parameters["d"].values, ["q", "r", "z"])
  
      # Ensure we error if we try to transform a fidelity parameter
      ss3 = SearchSpace(
          parameters=[
              ChoiceParameter(
                  "b",
                  parameter_type=ParameterType.FLOAT,
                  values=[1.0, 10.0, 100.0],
                  is_ordered=True,
                  is_fidelity=True,
                  target_value=100.0,
              )
          ]
      )
      t = OrderedChoiceEncode(search_space=ss3, observations=[])
      with self.assertRaises(ValueError):
          t.transform_search_space(ss3)
  
imports: from copy import deepcopy
  from typing import List, Sized
  import numpy
  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.choice_encode import ChoiceEncode, OrderedChoiceEncode
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import checked_cast
  from ax.utils.testing.core_stubs import get_robust_search_space
label_desc: Use image node_id 3 for calling the OrderedChoiceEncodeTransformTest obj's underlying member method code with example usage: obj.test_TransformSearchSpace() without return types