code: public static BatchCSVRecord fromDataSet(DataSet dataSet) {
          BatchCSVRecord batchCSVRecord = new BatchCSVRecord();
          for (int i = 0; i < dataSet.numExamples(); i++) {
              batchCSVRecord.add(SingleCSVRecord.fromRow(dataSet.get(i)));
          }
  
          return batchCSVRecord;
      }
docs: Return a batch record based on a dataset
  @param dataSet the dataset to get the batch record for
  @return the batch record