code: def from_bytes(cls, bt):
          
          log.debug("Parsing email from bytes")
          if six.PY2:
              raise MailParserEnvironmentError(
                  "Parsing from bytes is valid only for Python 3.x version")
          message = email.message_from_bytes(bt)
          return cls(message)
docs: Init a new object from bytes.
  
          Args:
              bt (bytes-like object): raw email as bytes-like object
  
          Returns:
              Instance of MailParser