code: def test_confusion_matrix_metric_invalid_metric(self):
      confusion_matrix = _classification.ConfusionMatrixAggFn(
          metrics=(ConfusionMatrixMetric.MEAN_AVERAGE_PRECISION,),
      )
      with self.assertRaisesRegex(
          NotImplementedError, "metric is not supported"
      ):
          confusion_matrix([0, 1, 0], [1, 0, 0])
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow_model_analysis.experimental.metrics.aggregates import _classification
label_desc: Use image node_id 6 for calling the ClassificationTest obj's underlying member method code with example usage: obj.test_confusion_matrix_metric_invalid_metric() without return types