code: def pytest_sessionstart(session: Session) -> None:
      """Called after the ``Session`` object has been created and before performing
      collection and entering the run test loop.
  
      Parameters
      ----------
      session : Session
          The pytest session object
      """
      config = session.config
      cache = config.cache
  
      if cache is None:
          return
  
      # We specifically only remove the cached items dir, not any information
      # about previous tests which also exist in `.pytest_cache`
      if not config.getoption("--cached"):
          dir = cache.mkdir(AUTOSKLEARN_CACHE_NAME)
          shutil.rmtree(dir)
  
      return
  
file_path: auto-sklearn/test/conftest.py
imports: from typing import Any, Iterator, List, Optional
  import re
  import shutil
  import signal
  from pathlib import Path
  import psutil
  import pytest
  from pytest import ExitCode, Item, Session
label_desc: Use image node_id 6 for calling a global function with example usage: pytest_sessionstart(session) without return types