docs: public static void exportCSVSequenceLocal(File baseDir, JavaRDD<List<List<Writable>>> sequences, long seed)
                      throws Exception {
          baseDir.mkdirs();
          if (!baseDir.isDirectory())
              throw new IllegalArgumentException("File is not a directory: " + baseDir.toString());
          String baseDirStr = baseDir.toString();
  
          List<String> fileContents = sequences.map(new SequenceToStringFunction(",")).collect();
          if (!(fileContents instanceof ArrayList))
              fileContents = new ArrayList<>(fileContents);
          Collections.shuffle(fileContents, new Random(seed));
  
          int i = 0;
          for (String s : fileContents) {
              String path = FilenameUtils.concat(baseDirStr, i + ".csv");
              File f = new File(path);
              FileUtils.writeStringToFile(f, s);
              i++;
          }
      }