all_combination = [[['a', 'b'], ['c', 'd']], [['e', 'f'], ['g', 'h']], [['c', 'd'], ['a', 'b']]]
assume that, [['a', 'b'], ['c', 'd']] = [['c', 'd'], ['a', 'b']]
I want to remove the duplicate list from list but the order doesn't matter. and more thing i need a if condition that checks that both [['a', 'b'], ['c', 'd']] is equal to [['c', 'd'], ['a', 'b']].
This is my code i have tried so far.
all_combination = [[['a', 'b'], ['c', 'd']], [['e', 'f'], ['g', 'h']], [['c', 'd'], ['a', 'b']]]
unique = []
new = []
status = False
for i in all_combination:
    for j in i:
        for k in range(len(all_combination)):
            l = k+1
            for m in range(l, len(i)):
                if j == all_combination[k][m]:
                    unique.append(i)
print(new)
Expected Answer:
[[['a', 'b'], ['c', 'd']], [['e', 'f'], ['g', 'h']]]
or
[[['e', 'f'], ['g', 'h']], [['c', 'd'], ['a', 'b']]]
 
     
     
     
     
    