code: def run_pipeline(
      options: argparse.Namespace,
      *,
      plugin_manager: OcrmypdfPluginManager,
  ) -> ExitCode:
      """Run the OCR pipeline without command line exception handling.
  
      Args:
          options: The parsed command line options.
          plugin_manager: The plugin manager to use. If not provided, one will be
              created.
      """
      return _run_pipeline(options, plugin_manager)
  
imports: from __future__ import annotations
  import argparse
  import logging
  import logging.handlers
  from collections.abc import Sequence
  from functools import partial
  from pathlib import Path
  from tempfile import mkdtemp
  import PIL
  from ocrmypdf._concurrent import Executor
  from ocrmypdf._graft import OcrGrafter
  from ocrmypdf._jobcontext import PageContext, PdfContext
  from ocrmypdf._pipeline import copy_final, get_pdfinfo, is_ocr_required, merge_sidecars, ocr_engine_hocr, ocr_engine_textonly_pdf, render_hocr_page, triage, validate_pdfinfo_options
  from ocrmypdf._pipelines._common import PageResult, cli_exception_handler, manage_debug_log_handler, manage_work_folder, postprocess, process_page, report_output_pdf, set_thread_pageno, setup_pipeline, worker_init
  from ocrmypdf._plugin_manager import OcrmypdfPluginManager
  from ocrmypdf._progressbar import ProgressBar
  from ocrmypdf._validation import check_requested_output_file, create_input_file
  from ocrmypdf.exceptions import ExitCode
label_desc: Use image node_id 6 for calling a global function with example usage: run_pipeline(options) and returns: _run_pipeline