def contains_duplicates(self):
        try:
            if len(self.val) != len(set(self.val)):
                return self
        except TypeError:
            raise TypeError('val is not iterable')
        self._err('Expected <%s> to contain duplicates, but did not.' % self.val)
Get the statistics for items with a particular key
dataset/ETHPy150Open ActivisionGameScience/assertpy/assertpy/assertpy.py/AssertionBuilder.contains_duplicates--crossover with--dataset/ETHPy150Open cemoody/lda2vec/lda2vec/tracking.py/Tracking.stats