code: def test_resize_contain(self):
      H, W = 32, 64
      img = np.random.uniform(255, size=(3, H, W))
      out, param = resize_contain(
          img,
          self.size,
          fill=self.fill,
          interpolation=self.interpolation,
          return_param=True,
      )
  
      self.assertEqual(param["scaled_size"], self.scaled_size)
      self.assertEqual(param["y_offset"], self.y_offset)
      self.assertEqual(param["x_offset"], self.x_offset)
  
      if self.scaled_size == (H, W):
          np.testing.assert_array_equal(
              out[
                  :,
                  self.y_offset : self.y_offset + H,
                  self.x_offset : self.x_offset + W,
              ],
              img,
          )
  
      if self.y_offset > 0 or self.x_offset > 0:
          if isinstance(self.fill, int):
              fill = (self.fill,) * 3
          else:
              fill = self.fill
          np.testing.assert_array_equal(
              out[:, 0, 0], np.array(fill).flatten()
          )
  
file_path: chainercv/tests/transforms_tests/image_tests/test_resize_contain.py
imports: import unittest
  import numpy
  import PIL
  from chainercv.transforms import resize_contain
  from chainercv.utils import testing
label_desc: Use image node_id 1 for calling the TestResizeContain obj's underlying member method code with example usage: obj.test_resize_contain() without return types