docstr: add_block deltas should never be replaced because they can
  have dependent deltas later in the queue.
docstr_tok: ["add_block","deltas","should","never","be","replaced","because","they","can","have","dependent","deltas","later","in","the","queue","."]
code: def test_dont_replace_block(self, other_msg: ForwardMsg):
      """add_block deltas should never be replaced because they can
      have dependent deltas later in the queue."""
      rq = ForwardMsgQueue()
      self.assertTrue(rq.is_empty())
  
      ADD_BLOCK_MSG.metadata.delta_path[:] = make_delta_path(
          RootContainer.MAIN, (), 0
      )
  
      other_msg.metadata.delta_path[:] = make_delta_path(
          RootContainer.MAIN, (), 0
      )
  
      # Delta messages should not replace `add_block` deltas with the
      # same delta_path.
      rq.enqueue(ADD_BLOCK_MSG)
      rq.enqueue(other_msg)
      queue = rq.flush()
      self.assertEqual(2, len(queue))
      self.assertEqual(ADD_BLOCK_MSG, queue[0])
      self.assertEqual(other_msg, queue[1])
  
file_path: streamlit/lib/tests/streamlit/runtime/forward_msg_queue_test.py
imports: import copy
  import unittest
  from typing import Tuple
  from parameterized import parameterized
  from streamlit.cursor import make_delta_path
  from streamlit.elements import arrow
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.proto.RootContainer_pb2 import RootContainer
  from streamlit.runtime.forward_msg_queue import ForwardMsgQueue
label_desc: Use image node_id 5 for calling the ForwardMsgQueueTest obj's underlying member method code with example usage: obj.test_dont_replace_block(other_msg) without return types