class_docstr: Base class for adapting messages
  
  Override message_type(msg) methods to create adapters.
class_docstr_tok: ["Base","class","for","adapting","messages","Override","message_type","(","msg",")","methods","to","create","adapters","."]
code: def update_msg_type(self, msg):
      header = msg["header"]
      msg_type = header["msg_type"]
      if msg_type in self.msg_type_map:
          msg["msg_type"] = header["msg_type"] = self.msg_type_map[
              msg_type
          ]
      return msg
  
imports: import re
  import json
  from jupyter_client import protocol_version_info
label_desc: Use image node_id 3 for calling the Adapter obj's underlying member method code with example usage: obj.update_msg_type(msg) and returns: msg