code: def test_pdf_append_fails_on_nonexistent_file():
      im = hopper("RGB")
      with tempfile.TemporaryDirectory() as temp_dir:
          with pytest.raises(OSError):
              im.save(
                  os.path.join(temp_dir, "nonexistent.pdf"), append=True
              )
  
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 12 for calling a global function with example usage: test_pdf_append_fails_on_nonexistent_file() without return types