code: def loads_msgpack(buf):
      
      # 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)
docs: Args:
          buf: the output of `dumps`.