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: test_status_command.rs
    path of file: ./repos/tikv/tests/integrations/raftstore
    
    the code of the file until where you have to start completion: // Copyright 2016 TiKV Project Authors. Licensed under Apache-2.0.

use health_controller::types::LatencyInspector;
use raftstore::store::msg::StoreMsg as StoreMsgV1;
use raftstore_v2::router::StoreMsg as StoreMsgV2;
use test_raftstore::Simulator as S1;
use test_raftstore_v2::Simulator as S2;

    
fn test_latency_inspect() {
    let mut cluster_v1 = test_raftstore::new_node_cluster(0, 1);
    cluster_v1.cfg.raft_store.store_io_pool_size = 2;
    cluster_v1.run();
    let mut cluster_v2 = test_raftstore_v2::new_node_cluster(0, 1);
    cluster_v2.run();
    let (router_v1, router_v2) = (
        cluster_v1.sim.wl().get_router(1).unwrap(),
        cluster_v2.sim.wl().get_router(1).unwrap(),
    );
    {
        // Test send LatencyInspect to V1.
        let (tx, rx) = std::sync::mpsc::sync_channel(10);
        let inspector = LatencyInspector::new(
            1,
            Box::new(move |_, duration| {
                let dur = duration.sum();
                tx.send(dur).unwrap();
            }),
        );
        let msg = StoreMsgV1::LatencyInspect {
            send_time: Instant::now(),
            inspector,
        };
        router_v1.send_control(msg).unwrap();
        rx.recv_timeout(std::time::Duration::from_secs(2)).unwrap();
    }
    {
        // Test send LatencyInspect to V2.
        let (tx, rx) = std::sync::mpsc::sync_channel(10);
        let inspector = LatencyInspector::new(
            1,
            Box::new(move |_, duration| {
                let dur = duration.sum();
                tx.send(dur).unwrap();
            }),
        );
        let msg = StoreMsgV2::LatencyInspect {
            send_time: Instant::now(),
            inspector,
        };
        router_v2.send_control(msg).unwrap();
        rx.recv_timeout(std::time::Duration::from_secs(2)).unwrap();
    }
}