docstr: Test that clear() doesn't call os.listdir if cache folder does not exist.
docstr_tok: ["Test","that","clear","(",")","does","n't","call","os.listdir","if","cache","folder","does","not","exist","."]
code: def test_storage_clear_not_call_listdir_not_existing_cache_directory(
      self,
  ):
      """Test that clear() doesn't call os.listdir if cache folder does not exist."""
      self.tempdir.cleanup()
  
      with patch("os.listdir") as mock_listdir:
          self.storage.clear()
  
      mock_listdir.assert_not_called()
  
imports: import logging
  import math
  import os.path
  import shutil
  import unittest
  from unittest.mock import MagicMock, patch
  from testfixtures import TempDirectory
  from streamlit import util
  from streamlit.logger import get_logger
  from streamlit.runtime.caching.storage import CacheStorageContext, CacheStorageError, CacheStorageKeyNotFoundError
  from streamlit.runtime.caching.storage.in_memory_cache_storage_wrapper import InMemoryCacheStorageWrapper
  from streamlit.runtime.caching.storage.local_disk_cache_storage import LocalDiskCacheStorage, LocalDiskCacheStorageManager
label_desc: Use image node_id 12 for calling the LocalDiskPersistCacheStorageTest obj's underlying member method code with example usage: obj.test_storage_clear_not_call_listdir_not_existing_cache_directory() without return types