code: def test_outdated_pickle(fetch_20newsgroups_vectorized_fxt):
      with patch("os.path.exists") as mock_is_exist:
          with patch("joblib.load") as mock_load:
              # mock that the dataset was cached
              mock_is_exist.return_value = True
              # mock that we have an outdated pickle with only X and y returned
              mock_load.return_value = ("X", "y")
              err_msg = "The cached dataset located in"
              with pytest.raises(ValueError, match=err_msg):
                  fetch_20newsgroups_vectorized_fxt(as_frame=True)
  
file_path: scikit-learn/sklearn/datasets/tests/test_20news.py
imports: from functools import partial
  from unittest.mock import patch
  import numpy
  import pytest
  import scipy.sparse
  from sklearn.datasets.tests.test_common import check_as_frame, check_pandas_dependency_message, check_return_X_y
  from sklearn.preprocessing import normalize
  from sklearn.utils._testing import assert_allclose_dense_sparse
label_desc: Use image node_id 7 for calling a global function with example usage: test_outdated_pickle(fetch_20newsgroups_vectorized_fxt) without return types