def __contains__(self, itm):
        if self._empty:
            return False
        if self._head == itm:
            return True
        return itm in self._tail
dataset/ETHPy150Open zhemao/funktown/funktown/list.py/ImmutableList.__contains__/original