code: function mergeBatchResults(batches) {
      let files = [];
      let unformattedFiles = [];
      let formattedFiles = [];
      let errors = [];
  
      batches.forEach(batch => {
          files.push(...batch.files);
          unformattedFiles.push(...batch.unformattedFiles);
          formattedFiles.push(...batch.formattedFiles);
          errors.push(...batch.errors);
      });
  
      return { files, formattedFiles, unformattedFiles, errors };
  }
docs: Merge the results from each batch into a single result of the same format