def METHOD_NAME(self, monkeypatch, tmp_path) -> MLPerfCallback:
    """Returns a callback with the MockMLLogger patched."""
    callback = MLPerfCallback(tmp_path, 0)
    monkeypatch.setattr(callback, 'mllogger', MockMLLogger())
    return callback