def METHOD_NAME(self):
    image = np.random.rand(3, 300, 500)  # rgb image 300x500
    expected_shape = (150, 250)
    resized_image, scale, mask_crop = resize_image(
        image, image_height=expected_shape[0], image_width=expected_shape[1]
    )
    original_shape = image.shape[-2:]
    expected_scale = min(
        expected_shape[0] / original_shape[0], expected_shape[1] / original_shape[1]
    )
    self.assertEqual(scale, expected_scale)
    self.assertEqual(resized_image.shape[-2:], expected_shape)
    self.assertEqual(mask_crop.shape[-2:], expected_shape)