code: def test_plot_confusion_matrix(
      fridge_efficientdet_model, fridge_efficientdet_records
  ):
      fridge_efficientdet_model.eval()
  
      batch, records = efficientdet.build_valid_batch(
          fridge_efficientdet_records
      )
  
      raw_preds = fridge_efficientdet_model(*batch)
  
      preds = efficientdet.convert_raw_predictions(
          batch=batch,
          raw_preds=raw_preds["detections"],
          records=fridge_efficientdet_records,
          detection_threshold=0.0,
      )
  
      cm = SimpleConfusionMatrix()
      cm.accumulate(preds)
      cm.finalize()
      cm.plot()
  
imports: import pytest
  from icevision.all import *
  from icevision.models.ross import efficientdet
label_desc: Use image node_id 4 for calling a global function with example usage: test_plot_confusion_matrix(fridge_efficientdet_model, fridge_efficientdet_records) without return types