code: def _slice_at(self, index, length=1):
          
          length_ = len(self)
          if -length <= index < 0:
              index += length_
          return slice(index, index + length)
docs: Create a slice for index and length.