code: def check(self, mask, expected):
      in_type = type(mask)
      bbox = mask_to_bbox(mask)
      size = 4
      out_mask = scale_mask(mask, bbox, size)
  
      self.assertIsInstance(out_mask, in_type)
      self.assertEqual(out_mask.dtype, np.bool)
  
      np.testing.assert_equal(
          cuda.to_cpu(out_mask), cuda.to_cpu(expected)
      )
  
file_path: chainercv/tests/utils_tests/mask_tests/test_scale_mask.py
imports: from __future__ import division
  import unittest
  import numpy
  import PIL.Image
  from chainer.backends import cuda
  from chainer import testing
  from chainer.testing import attr
  from chainercv.transforms import resize
  from chainercv.utils import generate_random_bbox
  from chainercv.utils import mask_to_bbox
  from chainercv.utils import scale_mask
label_desc: Use image node_id 1 for calling the TestScaleMaskSimple obj's underlying member method code with example usage: obj.check(mask, expected) without return types