docstr: Test our CacheStatsProvider implementation.
docstr_tok: ["Test","our","CacheStatsProvider","implementation","."]
code: def test_cache_stats(self):
      """Test our CacheStatsProvider implementation."""
      self.assertEqual(0, len(self.storage.get_stats()))
  
      # Add several files to storage. We'll unique-ify them by filename.
      mock_data = b"some random mock binary data"
      num_files = 5
      for ii in range(num_files):
          self.storage.load_and_get_id(
              mock_data,
              mimetype="video/mp4",
              kind=MediaFileKind.MEDIA,
              filename=f"{ii}.mp4",
          )
  
      stats = self.storage.get_stats()
      self.assertEqual(len(stats), 1)
      self.assertEqual(
          "st_memory_media_file_storage", stats[0].category_name
      )
      self.assertEqual(
          len(mock_data) * num_files,
          sum(stat.byte_length for stat in stats),
      )
  
      # Remove files, and ensure our cache doesn't report they still exist
      for file_id in list(self.storage._files_by_id.keys()):
          self.storage.delete_file(file_id)
  
      self.assertEqual(0, len(self.storage.get_stats()))
  
imports: import unittest
  from unittest import mock
  from unittest.mock import MagicMock, mock_open
  from parameterized import parameterized
  from streamlit.runtime.media_file_storage import MediaFileKind, MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import MemoryFile, MemoryMediaFileStorage, get_extension_for_mimetype
label_desc: Use image node_id 10 for calling the MemoryMediaFileStorageTest obj's underlying member method code with example usage: obj.test_cache_stats() without return types