code: def test_apng_sequence_errors(test_file):
      with pytest.raises(SyntaxError):
          with Image.open(f"Tests/images/apng/{test_file}") as im:
              im.seek(im.n_frames - 1)
              im.load()
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageSequence, PngImagePlugin
label_desc: Use image node_id 15 for calling a global function with example usage: test_apng_sequence_errors(test_file) without return types