code: def linearize(self, index=0):
          '''Linearize the Sequence at an index.
  
          :param index: index at which to linearize.
          :type index: int
          :returns: A linearized version of the current sequence.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if the input is a linear sequence.
  
          '''
          if not self.circular and index != 0:
              raise ValueError('Cannot relinearize a linear sequence.')
          copy = self.copy()
          # Snip at the index
          if index:
              return copy[index:] + copy[:index]
          copy.circular = False
  
          return copf linearize(self, index=0):
          '''Linearize the Sequence at an index.
  
          :param index: index at which to linearize.
          :type index: int
          :returns: A linearized version of the current sequence.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if the input is a linear sequence.
  
          '''
          if not self.circular and index != 0:
              raise ValueError('Cannot relinearize a linear sequence.')
          copy = self.copy()
          # Snip at the index
          if index:
              return copy[index:] + copy[:index]
          copy.circular = False
  
          return copy
docs: Linearize the Sequence at an index.
  
          :param index: index at which to linearize.
          :type index: int
          :returns: A linearized version of the current sequence.
          :rtype: coral.sequence._sequence.Sequence
          :raises: ValueError if the input is a linear sequence.