code: def check_proposal_creator(
      self, proposal_creator, bbox_d, score, anchor, img_size, scale=1.0
  ):
      with chainer.using_config("train", self.train):
          roi = self.proposal_creator(
              bbox_d, score, anchor, img_size, scale
          )
  
      if self.train:
          out_length = self.n_train_post_nms
      else:
          out_length = self.n_test_post_nms
      self.assertIsInstance(roi, type(bbox_d))
      self.assertEqual(roi.shape, (out_length, 4))
  
file_path: chainercv/tests/links_tests/model_tests/faster_rcnn_tests/utils_tests/test_proposal_creator.py
imports: import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  from chainercv.links.model.faster_rcnn import ProposalCreator
  from chainercv.utils import generate_random_bbox
label_desc: Use image node_id 2 for calling the TestProposalCreator obj's underlying member method code with example usage: obj.check_proposal_creator(proposal_creator, bbox_d, score, anchor, img_size, scale) without return types