code: def test_invalid_file():
      # Arrange
      invalid_file = "Tests/images/flower.jpg"
  
      # Act / Assert
      with pytest.raises(SyntaxError):
          BufrStubImagePlugin.BufrStubImageFile(invalid_file)
  
file_path: pillow/Tests/test_file_bufrstub.py
imports: from __future__ import annotations
  import pytest
  from PIL import BufrStubImagePlugin, Image
  from .helper import hopper
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_file() without return types