code: def test_TransformSearchSpace(self) -> None:
      new_ss = self.t._transform_search_space(
          deepcopy(self.search_space)
      )
      self.assertEqual(len(new_ss.parameters), 3)
      new_param = new_ss.parameters["METRIC_TASK"]
      self.assertIsInstance(new_param, ChoiceParameter)
      self.assertEqual(
          new_param.values,
          ["TARGET", "metric1", "metric2"],  # pyre-ignore
      )
      self.assertTrue(new_param.is_task)  # pyre-ignore
      self.assertEqual(new_param.target_value, "TARGET")
  
file_path: Ax/ax/modelbridge/transforms/tests/test_metrics_as_task_transform.py
imports: from copy import deepcopy
  import numpy
  from ax.core.observation import Observation, ObservationData, ObservationFeatures
  from ax.core.parameter import ChoiceParameter
  from ax.modelbridge.transforms.metrics_as_task import MetricsAsTask
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_search_space_for_range_values
label_desc: Use image node_id 5 for calling the MetricsAsTaskTransformTest obj's underlying member method code with example usage: obj.test_TransformSearchSpace() without return types