def METHOD_NAME(self):
    with tempfile.TemporaryDirectory() as tmpdirname:
        config_file = os.path.join(tmpdirname, "runtime_metrics.json")
        os.environ[ConfigPath.ENV_RUNTIME_METRICS] = config_file
        self.elastic_trainer._last_report_time = 0
        self.elastic_trainer._after_step()
        with open(config_file, "r") as f:
            runtime_metrics = json.load(f)
            step = runtime_metrics.get("step")
            self.assertEqual(step, 1)