code: def test_not_an_icns_file():
      with io.BytesIO(b"invalid\n") as fp:
          with pytest.raises(SyntaxError):
              IcnsImagePlugin.IcnsFile(fp)
  
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 9 for calling a global function with example usage: test_not_an_icns_file() without return types