code: def rasterize_pdf_page(
      input_file,
      output_file,
      raster_device,
      raster_dpi,
      pageno,
      page_dpi,
      rotation,
      filter_vector,
      stop_on_soft_error,
  ):
      """Rasterize a single page of a PDF file using Ghostscript."""
      ghostscript.rasterize_pdf(
          input_file,
          output_file,
          raster_device=raster_device,
          raster_dpi=raster_dpi,
          pageno=pageno,
          page_dpi=page_dpi,
          rotation=rotation,
          filter_vector=filter_vector,
          stop_on_error=stop_on_soft_error,
      )
      return output_file
  
file_path: OCRmyPDF/src/ocrmypdf/builtin_plugins/ghostscript.py
imports: from __future__ import annotations
  import logging
  from packaging.version import Version
  from ocrmypdf import hookimpl
  from ocrmypdf._exec import ghostscript
  from ocrmypdf.exceptions import MissingDependencyError
  from ocrmypdf.subprocess import check_external_program
label_desc: Use image node_id 3 for calling a global function with example usage: rasterize_pdf_page(input_file, output_file, raster_device, raster_dpi, pageno, page_dpi, rotation, filter_vector, stop_on_soft_error) and returns: output_file