code: def test_apng_blend():
      with Image.open(
          "Tests/images/apng/blend_op_source_solid.png"
      ) as im:
          im.seek(im.n_frames - 1)
          assert im.getpixel((0, 0)) == (0, 255, 0, 255)
          assert im.getpixel((64, 32)) == (0, 255, 0, 255)
  
      with Image.open(
          "Tests/images/apng/blend_op_source_transparent.png"
      ) as im:
          im.seek(im.n_frames - 1)
          assert im.getpixel((0, 0)) == (0, 0, 0, 0)
          assert im.getpixel((64, 32)) == (0, 0, 0, 0)
  
      with Image.open(
          "Tests/images/apng/blend_op_source_near_transparent.png"
      ) as im:
          im.seek(im.n_frames - 1)
          assert im.getpixel((0, 0)) == (0, 255, 0, 2)
          assert im.getpixel((64, 32)) == (0, 255, 0, 2)
  
      with Image.open("Tests/images/apng/blend_op_over.png") as im:
          im.seek(im.n_frames - 1)
          assert im.getpixel((0, 0)) == (0, 255, 0, 255)
          assert im.getpixel((64, 32)) == (0, 255, 0, 255)
  
      with Image.open(
          "Tests/images/apng/blend_op_over_near_transparent.png"
      ) as im:
          im.seek(im.n_frames - 1)
          assert im.getpixel((0, 0)) == (0, 255, 0, 97)
          assert im.getpixel((64, 32)) == (0, 255, 0, 255)
  
imports: import pytest
  from PIL import Image, ImageSequence, PngImagePlugin
label_desc: Use image node_id 7 for calling a global function with example usage: test_apng_blend() without return types