code: def pack(o, stream, **kwargs):
      """
      Pack object `o` and write it to `stream`
  
      See :class:`Packer` for options.
      """
      packer = Packer(**kwargs)
      stream.write(packer.pack(o))
  
file_path: catboost/contrib/python/pandas/py2/pandas/io/msgpack/__init__.py
imports: from collections import namedtuple
  from pandas.io.msgpack.exceptions import *
  from pandas.io.msgpack._version import version
  import os
  from pandas.io.msgpack._packer import Packer
  from pandas.io.msgpack._unpacker import unpack, unpackb, Unpacker
label_desc: Use image node_id 1 for calling a global function with example usage: pack(o, stream) without return types