code: def test_calc_detection_voc_ap(self):
      ap = calc_detection_voc_ap(
          self.prec, self.rec, use_07_metric=self.use_07_metric
      )
  
      np.testing.assert_almost_equal(ap, self.ap)
  
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_detection_voc_ap
  from chainercv.evaluations import calc_detection_voc_prec_rec
  from chainercv.evaluations import eval_detection_voc
label_desc: Use image node_id 2 for calling the TestCalcDetectionVOCAP obj's underlying member method code with example usage: obj.test_calc_detection_voc_ap() without return types