code: def get_stats(self) -> List[CacheStat]:
      # We operate on a copy of our dict, to avoid race conditions
      # with other threads that may be manipulating the cache.
      files_by_id = self._files_by_id.copy()
  
      stats: List[CacheStat] = []
      for file_id, file in files_by_id.items():
          stats.append(
              CacheStat(
                  category_name="st_memory_media_file_storage",
                  cache_name="",
                  byte_length=len(file.content),
              )
          )
      return group_stats(stats)
  
imports: import contextlib
  import hashlib
  import mimetypes
  import os.path
  from typing import Dict, List, NamedTuple, Optional, Union
  from typing_extensions import Final
  from streamlit.logger import get_logger
  from streamlit.runtime.media_file_storage import MediaFileKind, MediaFileStorage, MediaFileStorageError
  from streamlit.runtime.stats import CacheStat, CacheStatsProvider, group_stats
  from streamlit.util import HASHLIB_KWARGS
label_desc: Use image node_id 7 for calling the MemoryMediaFileStorage obj's underlying member method code with example usage: obj.get_stats() and returns: group_stats