same_items(a, b)
True
same_items(['A', 'B', 'A'], ['B', 'A'])
Ignoring repeats, both mention {A, B}.
Convert both to sets.
Sets compare with == by content.