<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_string(cls, s):
 """ Init a new object from a string. Args: s (string):
 raw email Returns: Instance of MailParser """


        log.debug("Parsing email from string")
        message = email.message_from_string(s)
        return cls(message)