code: def test_confusion_matrix_samples_average_disallowed(self):
      with self.assertRaisesRegex(
          ValueError, "average is unsupported,"
      ):
          _classification.ConfusionMatrixAggFn(
              average=AverageType.SAMPLES
          )
  
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 18 for calling the ClassificationTest obj's underlying member method code with example usage: obj.test_confusion_matrix_samples_average_disallowed() without return types