code: def test_coco_eval(records, preds, expected_coco_output):
      coco_eval = create_coco_eval(records, preds, "bbox")
  
      coco_eval.evaluate()
      coco_eval.accumulate()
      with CaptureStdout() as output:
          coco_eval.summarize()
  
      assert output == expected_coco_output
  
imports: import pytest
  from icevision.all import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_coco_eval(records, preds, expected_coco_output) without return types