def attr_group_indices(data, label_groups):
    """ Return a two or more lists of indices into `data.domain` based on `label_groups`
    
    Example::
        cancer_indices, no_cancer_indices = attr_group_indices(data, [("disease state", "cancer"), ("disease state", "normal")])
    """
    ret = []
    for key, val in label_groups:
        ind = [i for i, attr in enumerate(data.domain.attributes) if attr.attributes.get(key, None) == val]
        ret.append(ind)
    return ret