private TSInsertTabletsReq genTSInsertTabletsReq(
      List<Tablet> tablets, boolean sorted, boolean isAligned) throws BatchExecutionException {
    TSInsertTabletsReq request = new TSInsertTabletsReq();
    if (tablets.isEmpty()) {
      throw new BatchExecutionException("No tablet is inserting!");
    }
    for (Tablet tablet : tablets) {
      updateTSInsertTabletsReq(request, tablet, sorted, isAligned);
    }
    return request;
  }
insert aligned data of several devices. Given a device, for each timestamp, the number of
measurements is the same.

@param tablets data batch in multiple device
@param sorted deprecated, whether times in each Tablet are in ascending order
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java