human
I wrote the below code

    from jedi import settings
    old = settings.cache_directory
    tmp = tempfile.mkdtemp(prefix='jedi-test-')
    settings.cache_directory = tmp
    @request.addfinalizer
    def restore():
        settings.cache_directory = old
        shutil.rmtree(tmp)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

@pytest.fixture(scope='session')
def clean_jedi_cache(request):