code: def test_get_preaggregated_confusion_matrix(self):
      pos_value = 1
      y_p = pd.Series([0, 1, 1, 0, 1])
      y_t = pd.Series([0, 0, 1, 1, 1])
      actual = metrics.get_preaggregated_confusion_matrix(
          y_p, y_t, pos_value
      )
      expected = (
          np.array([2, 4]),
          np.array([0]),
          np.array([1]),
          np.array([3]),
      )
      np.testing.assert_equal(actual, expected)
  
file_path: AIX360/tests/rule_induction/trxf/test_metrics.py
imports: from unittest import TestCase
  import numpy
  import pandas
  import aix360.algorithms.rule_induction.trxf.metrics
  from tests.rule_induction.trxf.utilities import create_numerical_test_data, create_numerical_test_ruleset_pos
label_desc: Use image node_id 3 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_get_preaggregated_confusion_matrix() without return types