class_docstr: Holds files uploaded by users of the running Streamlit app.
  This class can be used safely from multiple threads simultaneously.
class_docstr_tok: ["Holds","files","uploaded","by","users","of","the","running","Streamlit","app",".","This","class","can","be","used","safely","from","multiple","threads","simultaneously","."]
docstr: Return the manager's CacheStats.
  
  Safe to call from any thread.
docstr_tok: ["Return","the","manager","'s","CacheStats",".","Safe","to","call","from","any","thread","."]
code: def get_stats(self) -> List[CacheStat]:
      """Return the manager's CacheStats.
  
      Safe to call from any thread.
      """
      # Flatten all files into a single list
      all_files: List[UploadedFileRec] = []
      # Make copy of self.file_storage for thread safety, to be sure
      # that main storage won't be changed form other thread
      file_storage_copy = self.file_storage.copy()
  
      for session_storage in file_storage_copy.values():
          all_files.extend(session_storage.values())
  
      stats: List[CacheStat] = [
          CacheStat(
              category_name="UploadedFileManager",
              cache_name="",
              byte_length=len(file.data),
          )
          for file in all_files
      ]
      return group_stats(stats)
  
file_path: streamlit/lib/streamlit/runtime/memory_uploaded_file_manager.py
imports: import uuid
  from collections import defaultdict
  from typing import Dict, List, Sequence
  from streamlit import util
  from streamlit.logger import get_logger
  from streamlit.runtime.stats import CacheStat, group_stats
  from streamlit.runtime.uploaded_file_manager import UploadedFileManager, UploadedFileRec, UploadFileUrlInfo
label_desc: Use image node_id 8 for calling the MemoryUploadedFileManager obj's underlying member method code with example usage: obj.get_stats() and returns: group_stats