Reconstructs a pytree from the treedef and the leaves.
The inverse of
treedef – the treedef to reconstruct
leaves – the list of leaves to use for reconstruction. The list must match the leaves of the treedef.
The reconstructed pytree, containing the
leavesplaced in the structure described by