<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, xml_string, validate=True):
 """ Creates a Python object from a XML string :param xml_string: XML string :param validate: XML should be validated against the embedded XSD definition :type validate: Boolean :returns: the Python object """

        return xmlmap.load_xmlobject_from_string(xml_string, xmlclass=cls, validate=validate)