def unique(sequence):
    """Get unique elements from a list maintaining the order.

    Parameters
    ----------
    input_list: list

    Returns
    -------
    unique_list: list
                 List with unique elements maintaining the order
    """
    visited = set()
    return [x for x in sequence if not (x in visited or visited.add(x))]