input_list = [(196, 128), (196, 128), (196, 128), (128, 196), (196, 128), (
    128, 196), (128, 196), (196, 128), (128, 196), (128, 196)]
sorted(set().union(*input_list))
How to transform a pair of values into a sorted unique array?