def __contains__(self, item):
        if isinstance(item, self.item_type):
            return item in self.items
        elif isinstance(item, basestring):
            return item in [i.netflix_id for i in self]
        try:
            return item.netflix_id in self
        except __HOLE__:
            pass
        return False
dataset/ETHPy150Open ryszard/python-netflix/netflix/__init__.py/NetflixCollection.__contains__