<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_sps(path):
 """Read a LibSVM file line-by-line. Args: path (str):
 A path to the LibSVM file to read. Yields: data (list) and target (int). """


    for line in open(path):
        # parse x
        xs = line.rstrip().split(' ')

        yield xs[1:], int(xs[0])