code: def clean_parso_cache():
      """
      Set the default cache directory to a temporary directory during tests.
  
      Note that you can't use built-in `tmpdir` and `monkeypatch`
      fixture here because their scope is 'function', which is not used
      in 'session' scope fixture.
  
      This fixture is activated in ../pytest.ini.
      """
      old = cache._default_cache_path
      tmp = tempfile.mkdtemp(prefix="parso-test-")
      cache._default_cache_path = tmp
      yield
      cache._default_cache_path = old
      shutil.rmtree(tmp)
  
imports: import re
  import tempfile
  import shutil
  import logging
  import sys
  import os
  import pytest
  import yatest.common
  import parso
  from parso import cache
  from parso.utils import parse_version_string
label_desc: Use image node_id 1 for calling a global function with example usage: clean_parso_cache() without return types