code: def test_no_unpaper(resources, no_outpdf):
      input_ = fspath(resources / "c02-22.pdf")
      output = fspath(no_outpdf)
  
      _parser, options, pm = get_parser_options_plugins(
          ["--clean", input_, output]
      )
      with patch("ocrmypdf._exec.unpaper.version") as mock:
          mock.side_effect = FileNotFoundError("unpaper")
  
          with pytest.raises(MissingDependencyError):
              check_options(options, pm)
          mock.assert_called()
  
file_path: OCRmyPDF/tests/test_unpaper.py
imports: from __future__ import annotations
  import logging
  from os import fspath
  from unittest.mock import patch
  import pytest
  from packaging.version import Version
  from ocrmypdf._exec import unpaper
  from ocrmypdf._plugin_manager import get_parser_options_plugins
  from ocrmypdf._validation import check_options
  from ocrmypdf.exceptions import BadArgsError, ExitCode, MissingDependencyError
  from .conftest import check_ocrmypdf, have_unpaper, run_ocrmypdf_api
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_unpaper(resources, no_outpdf) without return types