def METHOD_NAME(self, versioned_txt_data_set):
    """Check the error if no versions are available for load."""
    pattern = r"Did not find any versions for TextDataSet\(.+\)"
    with pytest.raises(DatasetError, match=pattern):
        versioned_txt_data_set.load()