docs: public static JavaRDD<DataSet> fromLabeledPoint(JavaRDD<LabeledPoint> data, final long numPossibleLabels,
                      long batchSize) {
  
          JavaRDD<DataSet> mappedData = data.map(new Function<LabeledPoint, DataSet>() {
              @Override
              public DataSet call(LabeledPoint lp) {
                  return fromLabeledPoint(lp, numPossibleLabels);
              }
          });
  
          return mappedData.repartition((int) (mappedData.count() / batchSize));
      }