class_docstr: pluggy.PluginManager that can fork.
  
  Capable of reconstructing itself in child workers.
  
  Arguments:
      setup_func: callback that initializes the plugin manager with all
          standard plugins
class_docstr_tok: ["pluggy.PluginManager","that","can","fork",".","Capable","of","reconstructing","itself","in","child","workers",".","Arguments",":","setup_func",":","callback","that","initializes","the","plugin","manager","with","all","standard","plugins"]
code: def __getstate__(self):
      state = dict(
          init_args=self.__init_args,
          plugins=self.__plugins,
          builtins=self.__builtins,
          init_kwargs=self.__init_kwargs,
      )
      return state
  
file_path: OCRmyPDF/src/ocrmypdf/_plugin_manager.py
imports: from __future__ import annotations
  import argparse
  import importlib
  import importlib.util
  import pkgutil
  import sys
  from collections.abc import Sequence
  from pathlib import Path
  import pluggy
  import ocrmypdf.builtin_plugins
  from ocrmypdf import pluginspec
  from ocrmypdf.cli import get_parser, plugins_only_parser
label_desc: Use image node_id 2 for calling the OcrmypdfPluginManager obj's underlying member method code with example usage: obj.__getstate__() and returns: state