code: def test_calc_instance_segmentation_voc_prec_rec(self):
      prec, rec = calc_instance_segmentation_voc_prec_rec(
          self.pred_masks,
          self.pred_labels,
          self.pred_scores,
          self.gt_masks,
          self.gt_labels,
          iou_thresh=self.iou_thresh,
      )
  
      self.assertEqual(len(prec), len(self.prec))
      for prec_l, expected_prec_l in zip(prec, self.prec):
          if prec_l is None and expected_prec_l is None:
              continue
          np.testing.assert_equal(prec_l, expected_prec_l)
  
      self.assertEqual(len(rec), len(self.rec))
      for rec_l, expected_rec_l in zip(rec, self.rec):
          if rec_l is None and expected_rec_l is None:
              continue
          np.testing.assert_equal(rec_l, expected_rec_l)
  
file_path: chainercv/tests/evaluations_tests/test_eval_instance_segmentation_voc.py
imports: from __future__ import division
  import numpy
  import os
  from six.moves.urllib import request
  import unittest
  from chainer import testing
  from chainercv.evaluations import calc_instance_segmentation_voc_prec_rec
  from chainercv.evaluations import eval_instance_segmentation_voc
label_desc: Use image node_id 2 for calling the TestCalcInstanceSegmentationVOCPrecRec obj's underlying member method code with example usage: obj.test_calc_instance_segmentation_voc_prec_rec() without return types