code: def format_message_type(message_type):
      
      if message_type == MsgType.NOT_SET:
          return "NOT_SET"
      elif message_type == MsgType.ACK:
          return "ACK"
      elif message_type == MsgType.JOIN:
          return "JOIN"
      elif message_type == MsgType.UNJOIN:
          return "UNJOIN"
      elif message_type == MsgType.CONFIG:
          return "CONFIG"
      elif message_type == MsgType.UPDATE:
          return "UPDATE"
      elif message_type == MsgType.DATA:
          return "DATA"
      else:
          return u"{}".format(message_type)
docs: Get printable version for message type
  
      :param message_type: Message type
      :type message_type: int
      :return: Printable version
      :rtype: str