pub async fn write_distances_csv( ids: Vec<String>, distances: Vec<Vec<usize>>, filename: &str, ) -> Result<(), Error>