<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_result(result):
 """ Parse ``clamscan`` output into same dictionary structured used by ``pyclamd``. Input example:: /home/bystrousak/Plocha/prace/test/eicar.com: Eicar-Test-Signature FOUND Output dict:: { "/home/bystrousak/Plocha/prace/test/eicar.com": ( "FOUND", "Eicar-Test-Signature" ) } """

    lines = filter(lambda x: x.strip(), result.splitlines())  # rm blank lines

    if not lines:
        return {}

    out = {}
    for line in lines:
        line = line.split(":")
        fn = line[0].strip()

        line = " ".join(line[1:])

        line = line.rsplit(None, 1)
        status = line.pop().strip()

        out[fn] = (status, " ".join(line).strip())

    return out