fn write_sample( table_data: &mut TableData, sample: &Sample, tags: impl Iterator<Item = (String, String)>, ) -> Result<()>