docstr: Return all the delta messages in our ForwardMsgQueue
docstr_tok: ["Return","all","the","delta","messages","in","our","ForwardMsgQueue"]
code: def get_all_deltas_from_queue(self) -> List[Delta]:
      """Return all the delta messages in our ForwardMsgQueue"""
      return [
          msg.delta
          for msg in self.forward_msg_queue._queue
          if msg.HasField("delta")
      ]
  
imports: import threading
  import unittest
  from typing import List
  from unittest.mock import MagicMock
  from streamlit.proto.Delta_pb2 import Delta
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.runtime import Runtime
  from streamlit.runtime.caching.storage.dummy_cache_storage import MemoryCacheStorageManager
  from streamlit.runtime.forward_msg_queue import ForwardMsgQueue
  from streamlit.runtime.media_file_manager import MediaFileManager
  from streamlit.runtime.memory_media_file_storage import MemoryMediaFileStorage
  from streamlit.runtime.memory_uploaded_file_manager import MemoryUploadedFileManager
  from streamlit.runtime.scriptrunner import ScriptRunContext, add_script_run_ctx, get_script_run_ctx
  from streamlit.runtime.scriptrunner.script_requests import ScriptRequests
  from streamlit.runtime.state import SafeSessionState, SessionState
  from streamlit.web.server.server import MEDIA_ENDPOINT, UPLOAD_FILE_ENDPOINT
label_desc: Use image node_id 5 for calling the DeltaGeneratorTestCase obj's underlying member method code with example usage: obj.get_all_deltas_from_queue() and returns: unknown