code: def test_TransformSearchSpace(self) -> None:
      ss2 = deepcopy(self.search_space)
      ss2 = self.t.transform_search_space(ss2)
  
      # Parameters transformed
      true_bounds = {
          "x": (self.target_lb, 1.0),
          "y": (self.target_lb, 1.0),
          "z": (1.0, 2.0),
          "a": (1.0, 2.0),
      }
      for p_name, (l, u) in true_bounds.items():
          self.assertEqual(ss2.parameters[p_name].lower, l)
          self.assertEqual(ss2.parameters[p_name].upper, u)
      self.assertEqual(ss2.parameters["b"].values, ["a", "b", "c"])
      self.assertEqual(len(ss2.parameters), 5)
      # Constraints transformed
      self.assertEqual(
          ss2.parameter_constraints[0].constraint_dict,
          self.expected_c_dicts[0],
      )
      self.assertEqual(
          ss2.parameter_constraints[0].bound, self.expected_c_bounds[0]
      )
      self.assertEqual(
          ss2.parameter_constraints[1].constraint_dict,
          self.expected_c_dicts[1],
      )
      self.assertEqual(
          ss2.parameter_constraints[1].bound, self.expected_c_bounds[1]
      )
  
      # Test transform of target value
      t = self.transform_class(
          search_space=self.search_space_with_target,
          observations=[],
      )
      t.transform_search_space(self.search_space_with_target)
      self.assertEqual(
          self.search_space_with_target.parameters["x"].target_value,
          1.0,
      )
  
file_path: Ax/ax/modelbridge/transforms/tests/test_unit_x_transform.py
imports: from copy import deepcopy
  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.exceptions.core import UnsupportedError, UserInputError
  from ax.modelbridge.transforms.unit_x import UnitX
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_robust_search_space
label_desc: Use image node_id 4 for calling the UnitXTransformTest obj's underlying member method code with example usage: obj.test_TransformSearchSpace() without return types