code: def _test_preds(preds):
      assert len(preds) == 1
  
      pred = preds[0].pred
      assert len(pred.detection.scores) == 2
  
      np.testing.assert_equal(pred.detection.label_ids, [2, 1])
  
      assert isinstance(pred.detection.bboxes[0], BBox)
      bboxes_np = np.array(
          [bbox.xyxy for bbox in pred.detection.bboxes]
      )
      bboxes_expected = np.array(
          [[65, 59, 170, 261], [123, 212, 341, 292]]
      )
      np.testing.assert_allclose(bboxes_np, bboxes_expected, atol=1)
  
file_path: icevision/tests/models/efficient_det/test_prediction.py
imports: import pytest
  from icevision.all import *
  import albumentations
  from icevision.models.inference import postprocess_bbox
  from icevision.models.ross import efficientdet
label_desc: Use image node_id 3 for calling a global function with example usage: _test_preds(preds) without return types