code: def test_write16(tmp_path):
      test_file = "Tests/images/hopper16.rgb"
  
      with Image.open(test_file) as im:
          out = str(tmp_path / "temp.sgi")
          im.save(out, format="sgi", bpc=2)
  
          assert_image_equal_tofile(im, out)
  
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 9 for calling a global function with example usage: test_write16(tmp_path) without return types