tfg.rendering.utils.restore_batch_dims

Unpack first dimension into batch_shape, preserving the rest of the dimensions.