code: public static ValidationResult validateDataSets(JavaSparkContext sc, String path, int[] featuresShape, int[] labelsShape) {
          return validateDataSets(sc, path, true, false, featuresShape, labelsShape);
      }
docs: Validate DataSet objects saved to the specified directory on HDFS by attempting to load them and checking their
  contents. Assumes DataSets were saved using {@link org.nd4j.linalg.dataset.DataSet#save(OutputStream)}.<br>
  This method (optionally) additionally validates the arrays using the specified shapes for the features and labels.
  Note: this method will also consider all files in subdirectories (i.e., is recursive).
  
  @param sc            Spark context
  @param path          HDFS path of the directory containing the saved DataSet objects
  @param featuresShape May be null. If non-null: feature arrays must match the specified shape, for all values with
  shape > 0. For example, if featuresShape = {-1,10} then the features must be rank 2,
  can have any size for the first dimension, but must have size 10 for the second dimension.
  @param labelsShape   As per featuresShape, but for the labels instead
  @return Results of the validation