code: def deserialize(json_msg):
      try:
          return Message(**json.loads(json_msg))
      except json.decoder.JSONDecodeError:
          return Message(MessageTypes.INVALID, None)
  
file_path: metaflow/metaflow/sidecar/sidecar_messages.py
imports: import json
label_desc: Use image node_id 3 for calling the Message obj's underlying member method code with example usage: obj.deserialize(json_msg) and returns: Message, Message