code: def inplace_delete_message(
          message_queue: List[SendMessageEvent],
          state_change: Union[ReceiveDelivered, ReceiveProcessed],
  ) -> None:
      
      for message in list(message_queue):
          message_found = (
              message.message_identifier == state_change.message_identifier and
              message.recipient == state_change.sender
          )
          if message_found:
              message_queue.remove(message)
docs: Check if the message exists in queue with ID `queueid` and exclude if found.