def benchmark_run_time_single_sample(self, sample, repeat):
        """Benchmark average runtime for a single sample using timeit library. Units are seconds"""
        timer = timeit.Timer(lambda: self.forward(sample))
        time_elapsed = timer.timeit(repeat)
        return time_elapsed / repeat
Benchmark average runtime for a single sample using timeit library. Units are seconds
understand_icl/fairseq/examples/speech_to_speech/benchmarking/core.py