code: def middle_begin(self, index):
          
          if (index < 0) or (index > self.all_length):
              raise ValueError(u"The given index is not valid")
          self.__middle_begin = index
docs: Set the index where MIDDLE starts.
  
          :param int index: the new index for MIDDLE begin