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: accurate_measurment.rs
    path of file: ./repos/diem/testsuite/cluster-test/src/experiments
    
    the code of the file until where you have to start completion: // Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0

use crate::{
    cluster::Cluster,
    experiments::{Context, Experiment, ExperimentParam},
    instance::Instance,
    tx_emitter::EmitJobRequest,
};
use anyhow::Result;
use async_trait::async_trait;
use core::fmt;
use futures::FutureExt;
use std::{collections::HashSet, time::Duration};
use structopt::StructOpt;

#[derive(StructOpt, Debug)]
pub struct AccurateMeasurementParams {
    #[structopt(
    long,
    default_value
    
    async fn run(&mut self, context: &mut Context<'_>) -> Result<()> {
        let instances = if context.emit_to_validator {
            self.validators.clone()
        } else {
            self.fullnodes.clone()
        };
        for i in 0..self.step_num {
            let tps = self.base_tps + self.step_length * i;
            let window = self.duration / self.step_num as u32;
            let emit_job_request = EmitJobRequest::fixed_tps(instances.clone(), tps, 0, 0);
            let emit_txn = context
                .tx_emitter
                .emit_txn_for(window, emit_job_request)
                .boxed();
            let stats = emit_txn.await?;
            // Report
            let test_step = format!("Step {}", i);
            context
                .report
                .report_txn_stats(test_step, stats, window, "");
        }

        Ok(())
    }