code: def test_confusion_matrix_logic(record, prediction_record, request):
      record = request.getfixturevalue(record)
      prediction_record = request.getfixturevalue(prediction_record)
  
      confusion_matrix = SimpleConfusionMatrix()
      predictions = [Prediction(prediction_record, record)]
      confusion_matrix.accumulate(predictions)
      confusion_matrix.finalize()
      cm = confusion_matrix.confusion_matrix
      assert isinstance(cm, np.ndarray)
  
file_path: icevision/tests/metrics/test_confusion_matrix.py
imports: import pytest
  from icevision.all import *
  from icevision.metrics.confusion_matrix.confusion_matrix_utils import *
label_desc: Use image node_id 11 for calling a global function with example usage: test_confusion_matrix_logic(record, prediction_record, request) without return types