code: def test_pnm(tmp_path):
      with Image.open("Tests/images/hopper.pnm") as im:
          assert_image_similar(im, hopper(), 0.0001)
  
          f = str(tmp_path / "temp.pnm")
          im.save(f)
  
          assert_image_equal_tofile(im, f)
  
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 4 for calling a global function with example usage: test_pnm(tmp_path) without return types