code: public ComputationGraph fitMultiDataSet(String path) {
          if (Nd4j.getExecutioner() instanceof GridExecutioner)
              ((GridExecutioner) Nd4j.getExecutioner()).flushQueue();
  
          JavaRDD<String> paths;
          try {
              paths = SparkUtils.listPaths(sc, path);
          } catch (IOException e) {
              throw new RuntimeException("Error listing paths in directory", e);
          }
  
          return fitPathsMultiDataSet(paths);
      }
docs: Fit the SparkComputationGraph network using a directory of serialized MultiDataSet objects
  The assumption here is that the directory contains a number of serialized {@link MultiDataSet} objects
  
  @param path Path to the directory containing the serialized MultiDataSet objcets
  @return The MultiLayerNetwork after training