code: def test_datasets(monkeypatch, tmp_path):
      """Test dataset config."""
      # gh-4192
      fake_path = tmp_path / "MNE-testing-data"
      fake_path.mkdir()
      with open(fake_path / "version.txt", "w") as fid:
          fid.write("9999.9999")
      monkeypatch.setenv("_MNE_FAKE_HOME_DIR", str(tmp_path))
      monkeypatch.setenv("MNE_DATASETS_TESTING_PATH", str(tmp_path))
      got_path = str(testing.data_path(download=False, verbose="debug"))
      assert got_path == str(fake_path)
  
file_path: mne-python/mne/utils/tests/test_testing.py
imports: import os.path
  from pathlib import Path
  import numpy
  import pytest
  from mne.datasets import testing
  from mne.utils import _TempDir, _url_to_local_path, buggy_mkl_svd
label_desc: Use image node_id 3 for calling a global function with example usage: test_datasets(monkeypatch, tmp_path) without return types