code: def test_invalid_file(data):
      with io.BytesIO(data) as fp:
          with pytest.raises(SyntaxError):
              ImtImagePlugin.ImtImageFile(fp)
  
imports: from __future__ import annotations
  import io
  import pytest
  from PIL import Image, ImtImagePlugin
  from .helper import assert_image_equal_tofile
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_file(data) without return types