fn decode_tagged<D, T, V>(decoder: &mut D, expected_tag: T) -> Vwhere
    T: Decodable<D> + Eq + Debug,
    V: Decodable<D>,
    D: Decoder,