code: def test_16bit_pgm():
      with Image.open("Tests/images/16_bit_binary.pgm") as im:
          im.load()
          assert im.mode == "I"
          assert im.size == (20, 100)
          assert im.get_format_mimetype() == "image/x-portable-graymap"
  
          assert_image_equal_tofile(
              im, "Tests/images/16_bit_binary_pgm.png"
          )
  
file_path: pillow-simd/Tests/test_file_ppm.py
imports: import sys
  from io import BytesIO
  import pytest
  from PIL import Image
  from .helper import assert_image_equal_tofile, assert_image_similar, hopper
label_desc: Use image node_id 2 for calling a global function with example usage: test_16bit_pgm() without return types