def remove_duplicates(iterable, key=None):
return itertools.chain.from_iterable(six.moves.map(<EOL>every_other, six.moves.map(<EOL>operator.itemgetter(<NUM_LIT:1>),<EOL>itertools.groupby(iterable, key)<EOL>)))<EOL>
Given an iterable with items that may come in as sequential duplicates,
remove those duplicates.

Unlike unique_justseen, this function does not remove triplicates.

>>> ' '.join(remove_duplicates('abcaabbccaaabbbcccbcbc'))
'a b c a b c a a b b c c b c b c'
>>> ' '.join(remove_duplicates('aaaabbbbb'))
'a a b b b'