code: def test_tempdir():
      """Test TempDir."""
      tempdir2 = _TempDir()
      assert Path(tempdir2).is_dir()
      x = str(tempdir2)
      del tempdir2
      assert not Path(x).is_dir()
  
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 2 for calling a global function with example usage: test_tempdir() without return types