code: def from_text(text):
      
  
      # 'text' can also be a file, but we don't publish that fact
      # since it's an implementation detail.  The official file
      # interface is from_file().
  
      m = Message()
  
      reader = _TextReader(text, m)
      reader.read()
  
      return m
docs: Convert the text format message into a message object.
  
      @param text: The text format message.
      @type text: string
      @raises UnknownHeaderField:
      @raises dns.exception.SyntaxError:
      @rtype: dns.message.Message object