code: def _test_preds(preds, pred_count=2, mask=False):
      # assert len(preds) == pred_count
  
      pred = preds[0].pred
      assert isinstance(pred.detection.label_ids, list)
      assert isinstance(pred.detection.bboxes, list)
      assert isinstance(pred.detection.scores, np.ndarray)
      if mask:
          assert isinstance(pred.detection.masks, MaskArray)
  
file_path: icevision/tests/models/mmdet/test_predict.py
imports: import pytest
  from icevision.all import *
  from icevision.models.inference_sahi import IceSahiModel
  from sahi.prediction import PredictionResult
  import albumentations
label_desc: Use image node_id 3 for calling a global function with example usage: _test_preds(preds, pred_count, mask) without return types