code: def get_progressbar_class() -> type[ProgressBar]:
      """Called to obtain a class that can be used to monitor progress.
  
      OCRmyPDF will call this function when it wants to display a progress bar.
      The class returned by this function must be compatible with the
      :class:`ProgressBar` protocol.
  
      Here is how OCRmyPDF will use the progress bar:
  
      Example:
          pbar_class = pm.hook.get_progressbar_class()
          with pbar_class(**progress_kwargs) as pbar:
              ...
              pbar.update(1)
      """
  
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from argparse import ArgumentParser, Namespace
  from collections.abc import Sequence, Set
  from logging import Handler
  from pathlib import Path
  from typing import TYPE_CHECKING, NamedTuple
  import pluggy
  from ocrmypdf import Executor, PdfContext
  from ocrmypdf._progressbar import ProgressBar
  from ocrmypdf.helpers import Resolution
label_desc: Use image node_id 6 for calling a global function with example usage: get_progressbar_class() without return types