docstr: Create a new MemoryMediaFileStorage instance
  
  Parameters
  ----------
  media_endpoint
      The name of the local endpoint that media is served from.
      This endpoint should start with a forward-slash (e.g. "/media").
docstr_tok: ["Create","a","new","MemoryMediaFileStorage","instance","Parameters","--","--","--","--","--","media_endpoint","The","name","of","the","local","endpoint","that","media","is","served","from",".","This","endpoint","should","start","with","a","forward-slash","(","e.g",".","``","\/media","''",")","."]
code: def __init__(self, media_endpoint: str):
      """Create a new MemoryMediaFileStorage instance
  
      Parameters
      ----------
      media_endpoint
          The name of the local endpoint that media is served from.
          This endpoint should start with a forward-slash (e.g. "/media").
      """
      self._files_by_id: Dict[str, MemoryFile] = {}
      self._media_endpoint = media_endpoint
  
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 1 to create a new MemoryMediaFileStorage object from inherited base classes: MediaFileStorage, CacheStatsProvider with example: obj = MemoryMediaFileStorage(media_endpoint)