<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):
 """Create an istance from string s containing a YAML dictionary."""

        stream = cStringIO(s)
        stream.seek(0)
        return cls(**yaml.safe_load(stream))