def METHOD_NAME(name):
    ds = hd[name]
    if not isinstance(ds, h5py.Dataset):
        # Group
        return
    # To preserve order of parameters
    keys.append((ds.attrs.get('index', None), name))