def METHOD_NAME(self, time_mock: Mock) -> None:
    time_mock.return_value = 1
    throughput_metric = ThroughputMetric(
        batch_size=self.batch_size, world_size=self.world_size, window_seconds=100
    )
    throughput_metric.update()
    self.assertEqual(
        throughput_metric.compute(),
        {"throughput-throughput|total_examples": self.batch_size * self.world_size},
    )