code: def setup_executor(plugin_manager) -> Executor:
      pbar_class = plugin_manager.hook.get_progressbar_class()
      return plugin_manager.hook.get_executor(
          progressbar_class=pbar_class
      )
  
file_path: OCRmyPDF/src/ocrmypdf/_concurrent.py
imports: from __future__ import annotations
  import threading
  from abc import ABC, abstractmethod
  from collections.abc import Iterable
  from typing import Any, Callable, TypeVar
  from ocrmypdf._progressbar import NullProgressBar, ProgressBar
label_desc: Use image node_id 3 for calling a global function with example usage: setup_executor(plugin_manager) and returns: plugin_manager