def _cmp_perm_lists(first, second):
    return {tuple(a) for a in first} == \
           {tuple(a) for a in second}
Compare two lists of permutations as sets.
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/testutil.py/_cmp_perm_lists