pub fn metadata_to_fb<'a>(
    fbb: &mut FlatBufferBuilder<'a>,
    metadata: &HashMap<String, String>
) -> WIPOffset<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>