<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _batch_insert(self, inserts, intervals, **kwargs):
    '''
    Support for batch insert. Default implementation is non-optimized and
    is a simple loop over values.
    '''
    for timestamp,names in inserts.iteritems():
      for name,values in names.iteritems():
        for value in values:
          self._insert( name, value, timestamp, intervals, **kwargs )