fn check_batch_statuses( statuses: &[Status], document_ids: &[String], skip_invalid_rows: bool, ) -> Result<()>