def get_unique_tuples(x):
    """Get unique 2-tuples, ignoring order, from the list `x`."""
    unique_tuples = \
        list(frozenset([tuple(sorted((o1, o2))) for o1 in x
                        for o2 in x if o1 is not o2]))
    return unique_tuples