(sequence: Iterable[Any])
return uniques
unique elements in `sequence` in the order in which they occur

    Parameters
    ----------
    sequence : iterable

    Returns
    -------
    uniques : list
        unique elements of sequence, ordered by the order in which the element
        occurs in `sequence`
unique elements in `sequence` in the order in which they occur
unique elements in sequence in the order in which they occur
def unique_by_index(sequence: Iterable[Any]) -> List[Any]:
    """unique elements in `sequence` in the order in which they occur

    Parameters
    ----------
    sequence : iterable

    Returns
    -------
    uniques : list
        unique elements of sequence, ordered by the order in which the element
        occurs in `sequence`
    """
    uniques = []
    for element in sequence:
        if element not in uniques:
            uniques.append(element)
    return uniques
def unique_by_index ( sequence : Iterable [ Any ] ) -> List [ Any ] : uniques = [ ] for element in sequence : if element not in uniques : uniques . append ( element ) return uniques