code: def msgpack_restore(encoded_pytree: bytes):
      """Restore data structure from bytes in msgpack format.
  
      Low-level function that only supports python trees with array leaves,
      for custom objects use ``from_bytes``.
  
      Args:
        encoded_pytree: msgpack-encoded bytes of python tree.
  
      Returns:
        Python tree of dict, list, tuple with python primitive
        and array leaves.
      """
      state_dict = msgpack.unpackb(
          encoded_pytree, ext_hook=_msgpack_ext_unpack, raw=False
      )
      return _unchunk_array_leaves_in_place(state_dict)
  
imports: import enum
  import threading
  from contextlib import contextmanager
  from typing import Any, Dict, List
  import jax
  import msgpack
  import numpy
label_desc: Use image node_id 24 for calling a global function with example usage: msgpack_restore(encoded_pytree) and returns: _unchunk_array_leaves_in_place