def compare_checksum(info, f):
pieces = info['<STR_LIT>']<EOL>def getchunks(f, size):<EOL><INDENT>while True:<EOL><INDENT>chunk = f.read(size)<EOL>if chunk == '<STR_LIT>':<EOL><INDENT>break<EOL><DEDENT>yield hashlib.sha1(chunk).digest()<EOL><DEDENT><DEDENT>calc = getchunks(f, info['<STR_LIT>'])<EOL>ref = (pieces[i:i + <NUM_LIT:20>] for i in range(<NUM_LIT:0>, len(pieces), <NUM_LIT:20>))<EOL>for expected, actual in zip(calc, ref):<EOL><INDENT>if expected != actual:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return ensure_empty(calc) and ensure_empty(ref)<EOL>
Return True if the checksum values in the info dictionary match the
    computed checksum values of file content.