code: def test_jp2_icon():
      # This icon was made by using Uli Kusterer's oldiconutil to replace
      # the PNG images with JPEG 2000 ones.  The advantage of doing this is
      # that OS X 10.5 supports JPEG 2000 but not PNG; some commercial
      # software therefore does just this.
  
      # (oldiconutil is here: https://github.com/uliwitness/oldiconutil)
  
      if not ENABLE_JPEG2K:
          return
  
      with Image.open("Tests/images/pillow3.icns") as im:
          for w, h, r in im.info["sizes"]:
              wr = w * r
              hr = h * r
              with Image.open("Tests/images/pillow3.icns") as im2:
                  im2.size = (w, h, r)
                  im2.load()
                  assert im2.mode == "RGBA"
                  assert im2.size == (wr, hr)
  
file_path: pillow-simd/Tests/test_file_icns.py
imports: import io
  import os
  import pytest
  from PIL import IcnsImagePlugin, Image, _binary, features
  from .helper import assert_image_equal, assert_image_similar_tofile
label_desc: Use image node_id 7 for calling a global function with example usage: test_jp2_icon() without return types