

def assertDifferentObjects(self, *objs):
    id_counts = Counter(map(id, objs))
    ((most_common_id, count),) = id_counts.most_common(1)
    if (count > 1):
        dupe = [o for o in objs if (id(o) == most_common_id)][0]
        self.fail(('%s appeared %d times in %s' % (dupe, self, objs)))

dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_term.py ObjectIdentityTestCase.assertDifferentObjects/VarMisuse@82/117 `count`->`self`