code: def test_unsupported_mode(tmp_path):
      im = hopper("PA")
      outfile = str(tmp_path / "temp_PA.pdf")
  
      with pytest.raises(ValueError):
          im.save(outfile)
  
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 6 for calling a global function with example usage: test_unsupported_mode(tmp_path) without return types