<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(s, single=False, version=_default_version, strict=False, errors='warn'):
 """ Deserialize SimpleMRS string representations Args: s (str):
 a SimpleMRS string single (bool):
 if `True`, only return the first Xmrs object Returns: a generator of Xmrs objects (unless *single* is `True`) """

    ms = deserialize(s, version=version, strict=strict, errors=errors)
    if single:
        return next(ms)
    else:
        return ms