You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: native_json.rs
    path of file: ./repos/vector/lib/codecs/tests
    
    the code of the file until where you have to start completion: use bytes::BytesMut;
use codecs::decoding::format::Deserializer;
use codecs::encoding::format::Serializer;
use codecs::{NativeJsonDeserializerConfig, NativeJsonSerializerConfig};
use vector_core::buckets;
use vector_core::config::LogNamespace;
use vector_core::event::{Event, Metric};
use vector_core::event::{MetricKind, MetricValue};

fn assert_roundtrip(
    input_event: Event,
    serializer: &mut dyn Serializer<Error = vector_common::Error>,
    deserializer: &dyn Deserializer,
    expected_json_value: serde_json::Value,
) {
    let mut bytes_mut = BytesMut::new();
    serializer
        .encode(input_event.clone(), &mut bytes_mut)
        .unwrap();
    let bytes = bytes_mut.freeze();
  
    
fn histogram_metric_roundtrip() {
    let histogram_event = Event::from(Metric::new(
        "histogram",
        MetricKind::Absolute,
        MetricValue::AggregatedHistogram {
            count: 1,
            sum: 1.0,
            buckets: buckets!(
                f64::NEG_INFINITY => 10 ,
                f64::MIN => 10, 1.5 => 10,
                f64::MAX => 10,
                f64::INFINITY => 10),
        },
    ));

    let expected_json_value = serde_json::from_str(
        r#"
        {
            "aggregated_histogram":  {
                "buckets": [
                     {
                        "count": 10,
                        "upper_limit": "-inf"
                    },
                    {
                        "count": 10,
                        "upper_limit": -1.7976931348623157e308
                    },
                    {
                        "count": 10,
                        "upper_limit": 1.5
                    },
                    {
                        "count": 10,
                        "upper_limit": 1.7976931348623157e308
                    },
                     {
                        "count": 10,
                        "upper_limit": "inf"
                    }
                ],
                "count": 1,
                "sum": 1.0
            },
            "kind": "absolute",
            "name": "histogram"
        }"#,
    )
    .unwrap();

    assert_roundtrip(
        histogram_event,
        &mut NativeJsonSerializerConfig.build(),
        &NativeJsonDeserializerConfig::default().build(),
        expected_json_value,
    )
}