class_docstr: Define the ``PUSH-DOC`` message for pushing Documents from clients to a
  Bokeh server.
  
  The ``content`` fragment of for this message is has the form:
  
  .. code-block:: python
  
      {
          'doc' : <Document JSON>
      }
docstr: Raises:
      ProtocolError
docstr_tok: ["Raises",":","ProtocolError"]
code: def push_to_document(self, doc: Document) -> None:
      """
  
      Raises:
          ProtocolError
  
      """
      if "doc" not in self.content:
          raise ProtocolError("No doc in PUSH-DOC")
      doc.replace_with_json(self.content["doc"])
  
file_path: bokeh/src/bokeh/protocol/messages/push_doc.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, TypedDict
  from ..exceptions import ProtocolError
  from ..message import Message
label_desc: Use image node_id 2 for calling the push_doc obj's underlying member method code with example usage: obj.push_to_document(doc) without return types