code: def test_invalid_file():
      invalid_file = "Tests/images/flower.jpg"
  
      with pytest.raises(SyntaxError):
          McIdasImagePlugin.McIdasImageFile(invalid_file)
  
imports: from __future__ import annotations
  import pytest
  from PIL import Image, McIdasImagePlugin
  from .helper import assert_image_equal_tofile
label_desc: Use image node_id 1 for calling a global function with example usage: test_invalid_file() without return types