code: def test_Init(self) -> None:
      with self.assertRaises(ValueError):
          MetricsAsTask(
              search_space=self.search_space,
              observations=self.observations,
          )
  
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 2 for calling the MetricsAsTaskTransformTest obj's underlying member method code with example usage: obj.test_Init() without return types