def METHOD_NAME(
    self, explicit_versioned_metrics_dataset, load_version, save_version, dummy_data
):
    """Check the warning when saving to the path that differs from
    the subsequent load path."""
    pattern = (
        f"Save version '{save_version}' did not match "
        f"load version '{load_version}' for "
        r"MetricsDataSet\(.+\)"
    )
    with pytest.warns(UserWarning, match=pattern):
        explicit_versioned_metrics_dataset.save(dummy_data)