def METHOD_NAME(self, versioned_json_data_set, dummy_data):
    """Check the error when attempting to override the data set if the
    corresponding json file for a given save version already exists."""
    versioned_json_data_set.save(dummy_data)
    pattern = (
        r"Save path \'.+\' for JSONDataSet\(.+\) must "
        r"not exist if versioning is enabled\."
    )
    with pytest.raises(DatasetError, match=pattern):
        versioned_json_data_set.save(dummy_data)