gammy.utils.
unflatten
Unflatten according to a reference
Examples
unflatten([1, 2, 3], [["a", "b"], ["c"]]) # [[1, 2], [3]]