code: def test_app(test_file):
      # Test APP/COM reader (@PIL135)
      with Image.open(test_file) as im:
          assert im.applist[0][0] == "APP1"
          assert im.applist[1][0] == "APP2"
          assert (
              im.applist[1][1][:16]
              == b"MPF\x00MM\x00*\x00\x00\x00\x08\x00\x03\xb0\x00"
          )
          assert len(im.applist) == 2
  
imports: from __future__ import annotations
  import warnings
  from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_similar, is_pypy, skip_unless_feature
label_desc: Use image node_id 7 for calling a global function with example usage: test_app(test_file) without return types