code: def test_wrap_err(self) -> None:
      err = Err(
          MetricFetchE(message="failed!", exception=Exception("panic!"))
      )
  
      with self.assertRaisesRegex(Exception, "panic"):
          Metric._unwrap_experiment_data_multi(
              results={0: {"foo": err}}
          )
  
      with self.assertRaisesRegex(Exception, "panic"):
          Metric._unwrap_experiment_data(results={0: err})
  
      with self.assertRaisesRegex(Exception, "panic"):
          Metric._unwrap_trial_data_multi(results={"foo": err})
  
file_path: Ax/ax/core/tests/test_metric.py
imports: from ax.core.metric import Metric, MetricFetchE
  from ax.utils.common.result import Err
  from ax.utils.common.testutils import TestCase
  from ax.utils.testing.core_stubs import get_branin_metric, get_data, get_experiment, get_factorial_metric
label_desc: Use image node_id 7 for calling the MetricTest obj's underlying member method code with example usage: obj.test_wrap_err() without return types