<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, cls=BinaryQuadraticModel, vartype=None):
 """Load a COOrdinate formatted binary quadratic model from a string."""

    return load(s.split('\n'), cls=cls, vartype=vartype)