code: def test_unexpected_eof():
      # Test unexpected EOF reading XV thumbnail file
      # Arrange
      bad_file = "Tests/images/hopper_bad.p7"
  
      # Act / Assert
      with pytest.raises(SyntaxError):
          XVThumbImagePlugin.XVThumbImageFile(bad_file)
  
imports: import pytest
  from PIL import Image, XVThumbImagePlugin
  from .helper import assert_image_similar, hopper
label_desc: Use image node_id 2 for calling a global function with example usage: test_unexpected_eof() without return types