fn write_attributes( writer: &mut TableData, row: &mut Vec<Value>, attrs: Option<&Vec<KeyValue>>, ) -> Result<()>