code: def test_unsupported_mode(tmp_path):
      im = hopper("LA")
      out = str(tmp_path / "temp.sgi")
  
      with pytest.raises(ValueError):
          im.save(out, format="sgi")
  
file_path: pillow-simd/Tests/test_file_sgi.py
imports: import pytest
  from PIL import Image, SgiImagePlugin
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, hopper
label_desc: Use image node_id 10 for calling a global function with example usage: test_unsupported_mode(tmp_path) without return types