fn write_samples( table_data: &mut TableData, samples: Vec<Sample>, tags: Vec<(String, String)>, ) -> Result<()>