Given a dataset region reference, this function will return the dataspace and selection required to read the data points indicated by the reference.
H5Rget_region(ref, h5loc)An object of class H5IdComponent representing the dataspace of the
dataset that ref points to. The dataspace will have the selection set
that matches the selection pointed to by ref. This should be closed using
H5Sclose() when no longer required.