class_docstr: Copy of ForkingPickler of `multiprocessing` module
class_docstr_tok: ["Copy","of","ForkingPickler","of","`","multiprocessing","`","module"]
docstr: Register reduce methods for multiprocessing
docstr_tok: ["Register","reduce","methods","for","multiprocessing"]
code: def register(cls, type, reduce) -> None:
      """Register reduce methods for multiprocessing"""
      cls._extra_reducers[type] = reduce
  
imports: import copyreg
  import io
  import os
  import pickle
  import random
  import traceback
  import types
  from contextlib import suppress
  from dataclasses import _is_dataclass_instance, asdict
  from inspect import signature
  from time import time
  from typing import Any, List, Union
  import numpy
  import torch
  import torch.distributed
  import torch.multiprocessing
  import torch.nn
  from transformers.file_utils import ModelOutput
  from parallelformers.parallel.engine import ParallelEngine
  from parallelformers.policies.base import Policy
label_desc: Use image node_id 2 for calling the ForkingPickler obj's underlying member method code with example usage: obj.register(cls, type, reduce) without return types