fn get_value(pairs: &[(Value, Value)], key: &str) -> Option<Value>
Helper to extract a value from a CBOR map by key.