Unpacking HDF5 file for tensorflow

I’m new to HDF5 (so apologies if this is obvious) but cannot seem to find how to unpack an HDF5 file that is already split into training, validation, test images and labels for input into tensorflow…
Thanks, Francis