code: def _get_cache_directory_path(cache_path=None):
      if cache_path is None:
          cache_path = _default_cache_path
      directory = os.path.join(cache_path, _VERSION_TAG)
      if not os.path.exists(directory):
          os.makedirs(directory)
      return directory
  
imports: import time
  import os
  import sys
  import hashlib
  import gc
  import shutil
  import platform
  import errno
  import logging
  import warnings
  from parso._compatibility import FileNotFoundError, PermissionError, scandir
  from parso.file_io import FileIO
label_desc: Use image node_id 12 for calling a global function with example usage: _get_cache_directory_path(cache_path) and returns: directory