code: def _get_item_position(self, idx):
          
          start = 0 if idx == 0 else self._index[idx - 1] + 1
          end = self._index[idx]
          return start, end
docs: Return a tuple of (start, end) indices of an item from its index.