code: def test_topk_confusion_matrix_callable(
      self,
      y_true,
      y_pred,
      input_type,
      k_list,
      average,
      expected,
      vocab=None,
      pos_label=1,
  ):
      confusion_matrix = _classification.TopKConfusionMatrixAggFn(
          input_type=input_type,
          average=average,
          k_list=k_list,
          vocab=vocab,
          pos_label=pos_label,
      )
      self.assertEqual((expected,), confusion_matrix(y_true, y_pred))
  
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 2 for calling the ClassificationTest obj's underlying member method code with example usage: obj.test_topk_confusion_matrix_callable(y_true, y_pred, input_type, k_list, average, expected, vocab, pos_label) without return types