

def _get_phylogenetic_kwargs(counts, **kwargs):
    try:
        otu_ids = kwargs.pop('otu_ids')
    except KeyError:
        raise ValueError('``otu_ids`` is required for phylogenetic diversity metrics.')
    try:
        tree = kwargs.pop('tree')
    except KeyError:
        raise ValueError('``tree`` is required for phylogenetic diversity metrics.')
    return (otu_ids, tree, otu_ids)

dataset/ETHPy150Open biocore/scikit-bio/skbio/diversity/_util.py _get_phylogenetic_kwargs/VarMisuse@71/134 `kwargs`->`otu_ids`