code: def setUp(self):
      # When n_inst >= 3, the test fails.
      # This is due to the fact that the transformed
      # image of `transforms.resize` is misaligned to the corners.
      n_inst = 2
      self.segm_size = 3
      self.size = (36, 48)
  
      self.segm = np.ones(
          (n_inst, self.segm_size, self.segm_size), dtype=np.float32
      )
      self.bbox = np.zeros((n_inst, 4), dtype=np.float32)
      for i in range(n_inst):
          self.bbox[i, 0] = 10 + i
          self.bbox[i, 1] = 10 + i
          self.bbox[i, 2] = self.bbox[i, 0] + self.segm_size * (1 + i)
          self.bbox[i, 3] = self.bbox[i, 1] + self.segm_size * (1 + i)
  
      self.mask = np.zeros((n_inst,) + self.size, dtype=np.bool)
      for i, bb in enumerate(self.bbox):
          bb = bb.astype(np.int32)
          self.mask[i, bb[0] : bb[2], bb[1] : bb[3]] = 1
  
file_path: chainercv/tests/links_tests/model_tests/fpn_tests/test_mask_utils.py
imports: from __future__ import division
  import numpy
  import unittest
  from chainer import testing
  from chainercv.links.model.fpn.mask_utils import mask_to_segm
  from chainercv.links.model.fpn.mask_utils import segm_to_mask
label_desc: Use image node_id 1 for calling the TestMaskUtils obj's underlying member method code with example usage: obj.setUp() without return types