def get_count(self, obj):
        """ Return the number of times an object was seen.

        Objects must be hashable.

        """

        if self._objects_registry in obj:
            count = self._objects_registry[obj]
        else:
            count = 0

        return count
dataset/ETHPy150Open enthought/pyface/pyface/util/id_helper.py/_ObjectCounter.get_count/swapped operands of `in`