def __getitem__(self, key):
        if isinstance(key, int):
            try:
                return self._items[key]
            except __HOLE__:
                return NullNode()

        # slice
        return Collection(list(self._items).__getitem__(key))
dataset/ETHPy150Open ChrisBeaumont/soupy/soupy.py/Collection.__getitem__