fn append_label_pair_pipeline_metadata( map: &mut BTreeMap<KeyString, Value>, structured_metadata: Option<Vec<LabelPairAdapter>>, )