code: def test_mode_RGBA():
      im = get_image("RGBA")
      for factor in remarkable_factors:
          compare_reduce_with_reference(im, factor, 0.8, 5)
  
      # With opaque alpha, an error should be way smaller.
      im.putalpha(Image.new("L", im.size, 255))
      for factor in remarkable_factors:
          compare_reduce_with_reference(im, factor)
          compare_reduce_with_box(im, factor)
  
file_path: pillow-simd/Tests/test_image_reduce.py
imports: import pytest
  from PIL import Image, ImageMath, ImageMode
  from .helper import convert_to_comparable, skip_unless_feature
label_desc: Use image node_id 12 for calling a global function with example usage: test_mode_RGBA() without return types