code: def test_DCT_scaling_edges():
      # Make an image with red borders and size (N * 8) + 1 to cross DCT grid
      im = Image.new("RGB", (257, 257), "red")
      im.paste(Image.new("RGB", (235, 235)), (11, 11))
  
      thumb = fromstring(
          tostring(im, "JPEG", quality=99, subsampling=0)
      )
      # small reducing_gap to amplify the effect
      thumb.thumbnail((32, 32), Image.BICUBIC, reducing_gap=1.0)
  
      ref = im.resize((32, 32), Image.BICUBIC)
      # This is still JPEG, some error is present. Without the fix it is 11.5
      assert_image_similar(thumb, ref, 1.5)
  
file_path: pillow-simd/Tests/test_image_thumbnail.py
imports: import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_similar, fromstring, hopper, tostring
label_desc: Use image node_id 6 for calling a global function with example usage: test_DCT_scaling_edges() without return types