docstr: Args:
      buf: the output of `dumps`.
docstr_tok: ["Args",":","buf",":","the","output","of","`","dumps","`","."]
code: def loads(buf):
      """
      Args:
          buf: the output of `dumps`.
      """
      # Since 0.6, the default max size was set to 1MB.
      # We change it to approximately 1G.
      return msgpack.loads(
          buf,
          raw=False,
          max_bin_len=MAX_MSGPACK_LEN,
          max_array_len=MAX_MSGPACK_LEN,
          max_map_len=MAX_MSGPACK_LEN,
          max_str_len=MAX_MSGPACK_LEN,
      )
  
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 2 for calling the MsgpackSerializer obj's underlying member method code with example usage: obj.loads(buf) and returns: msgpack