code: def _test_preds(preds):
      assert len(preds) == 2
  
      pred = preds[0].pred
      assert isinstance(pred.detection.label_ids, list)
      assert isinstance(pred.detection.bboxes[0], BBox)
      assert isinstance(pred.detection.mask_array[0], MaskArray)
      assert isinstance(pred.detection.scores, np.ndarray)
  
file_path: icevision/tests/models/torchvision_models/mask_rcnn/test_predict.py
imports: import pytest
  from icevision.imports import *
  from icevision import *
  from icevision.models.torchvision import mask_rcnn
label_desc: Use image node_id 3 for calling a global function with example usage: _test_preds(preds) without return types