docstr: Serialize an object.
  
  Returns:
      Implementation-dependent bytes-like object.
      May not be compatible across different versions of pyarrow.
docstr_tok: ["Serialize","an","object",".","Returns",":","Implementation-dependent","bytes-like","object",".","May","not","be","compatible","across","different","versions","of","pyarrow","."]
code: def dumps(obj):
      """
      Serialize an object.
  
      Returns:
          Implementation-dependent bytes-like object.
          May not be compatible across different versions of pyarrow.
      """
      import pyarrow as pa
  
      return pa.serialize(obj).to_buffer()
  
file_path: tensorpack/tensorpack/utils/serialize.py
imports: import os
  import pickle
  from multiprocessing.reduction import ForkingPickler
  import msgpack
  import msgpack_numpy
label_desc: Use image node_id 1 for calling the PyarrowSerializer obj's underlying member method code with example usage: obj.dumps(obj) and returns: pa