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