docs: public static void createFileBatchesLocal(File inputDirectory, String[] extensions, boolean recursive, File outputDirectory, int batchSize) throws IOException {
          if(!outputDirectory.exists())
              outputDirectory.mkdirs();
          //Local version
          List<File> c = new ArrayList<>(FileUtils.listFiles(inputDirectory, extensions, recursive));
          Collections.shuffle(c);
  
          //Construct file batch
          List<String> list = new ArrayList<>();
          List<byte[]> bytes = new ArrayList<>();
          for (int i = 0; i < c.size(); i++) {
              list.add(c.get(i).toURI().toString());
              bytes.add(FileUtils.readFileToByteArray(c.get(i)));
  
              if (list.size() == batchSize) {
                  process(list, bytes, outputDirectory);
              }
          }
          if (list.size() > 0) {
              process(list, bytes, outputDirectory);
          }
      }