code: def _insert_data(self, connection, name, value, timestamp, interval, config):
      '''Helper to insert data into cql.'''
      cursor = connection.cursor()
      try:
        stmt = self._insert_stmt(name, value, timestamp, interval, config)
        if stmt:
          cursor.execute(stmt)
      finally:
        cursor.close(f _insert_data(self, connection, name, value, timestamp, interval, config):
      '''Helper to insert data into cql.'''
      cursor = connection.cursor()
      try:
        stmt = self._insert_stmt(name, value, timestamp, interval, config)
        if stmt:
          cursor.execute(stmt)
      finally:
        cursor.close()
docs: Helper to insert data into cql.