code: def test_resolution(tmp_path):
      im = hopper()
  
      outfile = str(tmp_path / "temp.pdf")
      im.save(outfile, resolution=150)
  
      with open(outfile, "rb") as fp:
          contents = fp.read()
  
      size = tuple(
          float(d)
          for d in contents.split(b"stream\nq ")[1]
          .split(b" 0 0 cm")[0]
          .split(b" 0 0 ")
      )
      assert size == (61.44, 61.44)
  
      size = tuple(
          float(d)
          for d in contents.split(b"/MediaBox [ 0 0 ")[1]
          .split(b"]")[0]
          .split()
      )
      assert size == (61.44, 61.44)
  
imports: from __future__ import annotations
  import io
  import os
  import os.path
  import tempfile
  import time
  import pytest
  from PIL import Image, PdfParser, features
  from .helper import hopper, mark_if_feature_version, skip_unless_feature
label_desc: Use image node_id 7 for calling a global function with example usage: test_resolution(tmp_path) without return types