code: def _insert(self, name, value, timestamp, intervals, **kwargs):
      '''
      Insert the value.
      '''
      if 'pipeline' in kwargs:
        pipe = kwargs.get('pipeline')
      else:
        pipe = self._client.pipeline(transaction=False)
  
      for interval,config in self._intervals.iteritems():
        timestamps = self._normalize_timestamps(timestamp, intervals, config)
        for tstamp in timestamps:
          self._insert_data(name, value, tstamp, interval, config, pipe,
            ttl_batch=kwargs.get('ttl_batch'))
  
      if 'pipeline' not in kwargs:
        pipe.execute(f _insert(self, name, value, timestamp, intervals, **kwargs):
      '''
      Insert the value.
      '''
      if 'pipeline' in kwargs:
        pipe = kwargs.get('pipeline')
      else:
        pipe = self._client.pipeline(transaction=False)
  
      for interval,config in self._intervals.iteritems():
        timestamps = self._normalize_timestamps(timestamp, intervals, config)
        for tstamp in timestamps:
          self._insert_data(name, value, tstamp, interval, config, pipe,
            ttl_batch=kwargs.get('ttl_batch'))
  
      if 'pipeline' not in kwargs:
        pipe.execute()
docs: Insert the value.