code: def run_ocrmypdf(
      input_file: Path, output_file: Path, *args, text: bool = True
  ) -> CompletedProcess:
      """Run ocrmypdf in a subprocess and let test deal with results.
  
      If an exception is thrown this fact will be returned as part of the result
      text and return code rather than exception objects.
      """
      p_args = (
          [sys.executable, "-m", "ocrmypdf"]
          + [str(arg) for arg in args if arg is not None]
          + [str(input_file), str(output_file)]
      )
  
      p = run(
          p_args,
          capture_output=True,
          text=text,
          check=False,
      )
      # print(p.stderr)
      return p
  
imports: from __future__ import annotations
  import platform
  import sys
  from pathlib import Path
  from subprocess import CompletedProcess, run
  import pytest
  from ocrmypdf import api, pdfinfo
  from ocrmypdf._exec import unpaper
  from ocrmypdf._plugin_manager import get_parser_options_plugins
  from ocrmypdf.exceptions import ExitCode
label_desc: Use image node_id 14 for calling a global function with example usage: run_ocrmypdf(input_file, output_file) and returns: p