code: def test_confusion_matrix_trues_positives(self):
      y_pred = [1, 0, 1, 0, 1, 0, 0]
      y_true = [1, 1, 0, 0, 1, 0, 1]
      confusion_matrix = _classification.ConfusionMatrixAggFn()
      cm = confusion_matrix(y_true, y_pred)[0]
      self.assertEqual(3, cm.p)
      self.assertEqual(4, cm.t)
  
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 11 for calling the ClassificationTest obj's underlying member method code with example usage: obj.test_confusion_matrix_trues_positives() without return types