def process_message(message):
    message["type"] = message.pop("MsgType").lower()
    message_type = MESSAGE_TYPES.get(message["type"], UnknownMessage)
    return message_type(message)
Process a message dict and return a Message Object
dataset/ETHPy150Open whtsky/WeRoBot/werobot/parser.py/process_message