def METHOD_NAME(self, tmp_path, monkeypatch, benchmark, world_size, device):
    def mock_accuracy(self, state: State):
        return 0.01
    monkeypatch.setattr(MLPerfCallback, '_get_accuracy', mock_accuracy)
    self.generate_submission(tmp_path, device, benchmark)
    with pytest.raises(ValueError, match='MLPerf checker failed'):
        self.run_mlperf_checker(tmp_path, monkeypatch)