<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def loads(cls, s):
 """ Load an instance of this class from YAML. """

        with closing(StringIO(s)) as fileobj:
            return cls.load(fileobj)