code: def _get_cache_dir():
      '''
      Get pillar cache directory. Initialize it if it does not exist.
      '''
  
      cache_dir = os.path.join(__opts__['cachedir'], 'pillar_s3fs')
  
      if not os.path.isdir(cache_dir):
          log.debug('Initializing S3 Pillar Cache')
          os.makedirs(cache_dir)
  
      return cache_dif _get_cache_dir():
      '''
      Get pillar cache directory. Initialize it if it does not exist.
      '''
  
      cache_dir = os.path.join(__opts__['cachedir'], 'pillar_s3fs')
  
      if not os.path.isdir(cache_dir):
          log.debug('Initializing S3 Pillar Cache')
          os.makedirs(cache_dir)
  
      return cache_dir
docs: Get pillar cache directory. Initialize it if it does not exist.