def __getitem__(self, item):
        if isinstance(item, slice):
            return map(Domain.wrap, self.es_query.start(item.start).size(item.start - item.stop).run().hits)
        raise ValueError('Invalid type of argument. Item should be an instance of slice class.')
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/api/domain_metadata.py/DomainQuerySetAdapter.__getitem__/swapped operands of `-`