code: def test_unpaper_args_invalid_filename(resources, outpdf, caplog):
      with pytest.raises(BadArgsError):
          run_ocrmypdf_api(
              resources / "skew.pdf",
              outpdf,
              "-c",
              "--unpaper-args",
              "/etc/passwd",
              "--plugin",
              "tests/plugins/tesseract_noop.py",
          )
  
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 5 for calling a global function with example usage: test_unpaper_args_invalid_filename(resources, outpdf, caplog) without return types