def METHOD_NAME(dsets, attrs):
    """Read data from h5 given an open h5py.File."""
    fname = os.path.join(TEST_OUTPUTS, "io_h5__test_write_h5_file.h5")
    with h5py.File(fname, "r") as file:
        dsets2, attrs2, skipped = read_h5(file)
    check_dsets_attrs(dsets, attrs, dsets2, attrs2)
    assert len(skipped) == 0