code: def run_rig_args(args, **kwargs):
      # Remove the two arguments that tell ghostscript to create a PDF/A
      # Does not remove the Postscript definition file - not necessary
      # to cause PDF/A creation failure
      new_args = [
          arg
          for arg in args
          if not arg.startswith("-dPDFA") and not arg.endswith(".ps")
      ]
      proc = run_polling_stderr(new_args, **kwargs)
      return proc
  
imports: from __future__ import annotations
  from unittest.mock import patch
  from ocrmypdf import hookimpl
  from ocrmypdf.builtin_plugins import ghostscript
  from ocrmypdf.subprocess import run_polling_stderr
label_desc: Use image node_id 1 for calling a global function with example usage: run_rig_args(args) and returns: proc