code: def make_opts_pm(
      input_file="a.pdf", output_file="b.pdf", language="eng", **kwargs
  ):
      if language is not None:
          kwargs["language"] = language
      parser = get_parser()
      pm = get_plugin_manager(kwargs.get("plugins", []))
      pm.hook.add_options(parser=parser)  # pylint: disable=no-member
      return (
          create_options(
              input_file=input_file,
              output_file=output_file,
              parser=parser,
              **kwargs,
          ),
          pm,
      )
  
imports: from __future__ import annotations
  import logging
  import os
  from unittest.mock import patch
  import pikepdf
  import pytest
  from ocrmypdf import _validation
  from ocrmypdf._concurrent import NullProgressBar, SerialExecutor
  from ocrmypdf._exec.tesseract import TesseractVersion
  from ocrmypdf._plugin_manager import get_plugin_manager
  from ocrmypdf.api import create_options
  from ocrmypdf.cli import get_parser
  from ocrmypdf.exceptions import BadArgsError, MissingDependencyError
  from ocrmypdf.pdfinfo import PdfInfo
  from .conftest import run_ocrmypdf_api
label_desc: Use image node_id 1 for calling a global function with example usage: make_opts_pm(input_file, output_file, language) and returns: create_options,  pm