code: def test_gs_raster_failure(resources, outpdf, caplog):
      exitcode = run_ocrmypdf_api(
          resources / "francais.pdf",
          outpdf,
          "--plugin",
          "tests/plugins/tesseract_noop.py",
          "--plugin",
          "tests/plugins/gs_raster_failure.py",
      )
      assert "TEST ERROR: gs_raster_failure.py" in caplog.text
      assert exitcode == ExitCode.child_process_error
  
imports: from __future__ import annotations
  import logging
  import secrets
  import subprocess
  from decimal import Decimal
  from unittest.mock import patch
  import pikepdf
  import pytest
  from PIL import Image, UnidentifiedImageError
  from ocrmypdf._exec.ghostscript import DuplicateFilter, rasterize_pdf
  from ocrmypdf.exceptions import ColorConversionNeededError, ExitCode
  from ocrmypdf.helpers import Resolution
  from .conftest import check_ocrmypdf, run_ocrmypdf_api
label_desc: Use image node_id 5 for calling a global function with example usage: test_gs_raster_failure(resources, outpdf, caplog) without return types