class_docstr: Test image conversion outputs.
class_docstr_tok: ["Test","image","conversion","outputs","."]
code: def testConvertImageResizedLargerIgnoreRatio(self):
      # Verifies that output size and image (based on pixel samples) are correct.
      conversion_settings = convert.ImageConvertSettings(
          "png",
          self.desired_width,
          self.desired_height,
          bg_color_rgb=self.blue_rgb,
          resize_if_larger=True,
          preserve_aspect_ratio=False,
      )
      orig_img = Image.new("RGBA", (20, 10), self.red_rgb)
  
      image_converter = convert.ImageConverter(
          orig_img, conversion_settings
      )
      converted_img = image_converter.convert()
  
      # Verify size.
      self.assertEqual(
          converted_img.size, (self.desired_width, self.desired_height)
      )
      # Image should be stretched to fit desired output size, so entire output
      # should be red. Verify center, and top left / bottom right edges.
      self.assertEqual(
          converted_img.getpixel((45, 45))[0:3], self.red_rgb
      )
      self.assertEqual(
          converted_img.getpixel((0, 0))[0:3], self.red_rgb
      )
      self.assertEqual(
          converted_img.getpixel((99, 99))[0:3], self.red_rgb
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import absltest
  from PIL import Image
  from PIL import ImageColor
  import convert
label_desc: Use image node_id 11 for calling the TestImageConverterTests obj's underlying member method code with example usage: obj.testConvertImageResizedLargerIgnoreRatio() without return types