docstr: Set the MemoryMediaFileStorage object used by instances of this
  handler. Must be called on server startup.
docstr_tok: ["Set","the","MemoryMediaFileStorage","object","used","by","instances","of","this","handler",".","Must","be","called","on","server","startup","."]
code: def initialize_storage(cls, storage: MemoryMediaFileStorage) -> None:
      """Set the MemoryMediaFileStorage object used by instances of this
      handler. Must be called on server startup.
      """
      # This is a class method, rather than an instance method, because
      # `get_content()` is a class method and needs to access the storage
      # instance.
      cls._storage = storage
  
file_path: streamlit/lib/streamlit/web/server/media_file_handler.py
imports: from typing import Optional
  from urllib.parse import quote
  import tornado.web
  from streamlit.logger import get_logger
  from streamlit.runtime.media_file_storage import MediaFileKind, MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import MemoryMediaFileStorage, get_extension_for_mimetype
  from streamlit.web.server import allow_cross_origin_requests
label_desc: Use image node_id 1 for calling the MediaFileHandler obj's underlying member method code with example usage: obj.initialize_storage(cls, storage) without return types