class_docstr: Copy of ForkingPickler of `multiprocessing` module
class_docstr_tok: ["Copy","of","ForkingPickler","of","`","multiprocessing","`","module"]
docstr: Dump objects for multiprocessing
docstr_tok: ["Dump","objects","for","multiprocessing"]
code: def dumps(cls, obj: Any, protocol=None) -> memoryview:
      """Dump objects for multiprocessing"""
      buf = io.BytesIO()
      cls(buf, protocol).dump(obj)
      return buf.getbuffer()
  
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 3 for calling the ForkingPickler obj's underlying member method code with example usage: obj.dumps(cls, obj, protocol) and returns: buf