code: def setUp(self):
      n_bbox = 8
      feat_size = (self.img_size[0] // 16, self.img_size[1] // 16)
      self.n_anchor = self.n_anchor_base * np.prod(feat_size)
  
      self.anchor = generate_random_bbox(
          self.n_anchor, self.img_size, 16, 200
      )
      self.bbox = generate_random_bbox(n_bbox, self.img_size, 16, 200)
      self.anchor_target_layer = AnchorTargetCreator(
          self.n_sample,
          pos_ratio=self.pos_ratio,
      )
  
file_path: chainercv/tests/links_tests/model_tests/faster_rcnn_tests/utils_tests/test_anchor_target_creator.py
imports: import unittest
  import numpy
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  from chainer import utils
  from chainercv.links.model.faster_rcnn import AnchorTargetCreator
  from chainercv.utils import generate_random_bbox
label_desc: Use image node_id 1 for calling the TestAnchorTargetCreator obj's underlying member method code with example usage: obj.setUp() without return types