Completed code with bug report for hdf5 dataset. How to fix?

have a look at this discussion