code: def test_TransformSearchSpace(self) -> None:
      ss2 = deepcopy(self.search_space)
      ss2 = self.t.transform_search_space(ss2)
      self.assertEqual(set(ss2.parameters.keys()), {"x", "TRIAL_PARAM"})
      p = ss2.parameters["TRIAL_PARAM"]
      self.assertEqual(p.parameter_type, ParameterType.STRING)
      # pyre-fixme[16]: `Parameter` has no attribute `values`.
      self.assertEqual(set(p.values), {"0", "1", "2"})
      # pyre-fixme[16]: `Parameter` has no attribute `is_task`.
      self.assertTrue(p.is_task)
      # pyre-fixme[16]: `Parameter` has no attribute `is_ordered`.
      self.assertFalse(p.is_ordered)
      self.assertEqual(p.target_value, "0")
      ss2 = deepcopy(self.search_space)
      ss2 = self.t2.transform_search_space(ss2)
      self.assertEqual(set(ss2.parameters.keys()), {"x", "bp1", "bp2"})
      p = ss2.parameters["bp1"]
      self.assertTrue(isinstance(p, ChoiceParameter))
      self.assertEqual(p.parameter_type, ParameterType.STRING)
      self.assertEqual(set(p.values), {"v1", "v2", "v3"})
      self.assertTrue(p.is_task)
      self.assertFalse(p.is_ordered)
      self.assertEqual(p.target_value, "v1")
      p = ss2.parameters["bp2"]
      self.assertTrue(isinstance(p, ChoiceParameter))
      self.assertEqual(p.parameter_type, ParameterType.STRING)
      self.assertEqual(set(p.values), {"u1", "u2"})
      self.assertTrue(p.is_task)
      self.assertFalse(p.is_ordered)
      self.assertEqual(p.target_value, "u1")
      t = TrialAsTask(
          search_space=self.search_space,
          observations=self.training_obs,
          config={
              "trial_level_map": {
                  "trial_index": {0: 10, 1: 11, 2: 12},
              },
              "target_trial": 1,
          },
      )
      ss2 = deepcopy(self.search_space)
      ss2 = t.transform_search_space(ss2)
      p = ss2.parameters["trial_index"]
      self.assertEqual(p.parameter_type, ParameterType.INT)
      self.assertEqual(set(p.values), {10, 11, 12})
      self.assertTrue(p.is_ordered)
      self.assertTrue(p.is_task)
      self.assertEqual(p.target_value, 11)
  
file_path: Ax/ax/modelbridge/transforms/tests/test_trial_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, ParameterType, RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.exceptions.core import UnsupportedError
  from ax.modelbridge.transforms.trial_as_task import TrialAsTask
  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 TrialAsTaskTransformTest obj's underlying member method code with example usage: obj.test_TransformSearchSpace() without return types