class_docstr: Provide a message factory for the Bokeh Server message protocol.
  
      
docstr: Create a new Message instance for the given type.
  
  Args:
      msgtype (str) :
docstr_tok: ["Create","a","new","Message","instance","for","the","given","type",".","Args",":","msgtype","(","str",")",":"]
code: def create(
      self, msgtype: MessageType, *args: Any, **kwargs: Any
  ) -> Message[Any]:
      """Create a new Message instance for the given type.
  
      Args:
          msgtype (str) :
  
      """
      if msgtype not in self._messages:
          raise ProtocolError(
              f"Unknown message type {msgtype!r} for Bokeh protocol"
          )
      return self._messages[msgtype].create(*args, **kwargs)
  
imports: from __future__ import annotations
  import logging
  import json
  from typing import TYPE_CHECKING, Any, Literal, overload
  from .exceptions import ProtocolError
  from .message import Message
  from .messages.ack import ack
  from .messages.error import error
  from .messages.ok import ok
  from .messages.patch_doc import patch_doc
  from .messages.pull_doc_reply import pull_doc_reply
  from .messages.pull_doc_req import pull_doc_req
  from .messages.push_doc import push_doc
  from .messages.server_info_reply import server_info_reply
  from .messages.server_info_req import server_info_req
label_desc: Use image node_id 12 for calling the Protocol obj's underlying member method code with example usage: obj.create(msgtype) and returns: self