def file_md5sum(filename):
hash_md5 = hashlib.md5()<EOL>with open(filename, '<STR_LIT:rb>') as f:<EOL><INDENT>for chunk in iter(lambda: f.read(<NUM_LIT> * <NUM_LIT:4>), b'<STR_LIT>'):<EOL><INDENT>hash_md5.update(chunk)<EOL><DEDENT><DEDENT>return hash_md5.hexdigest()<EOL>
:param filename: The filename of the file to process
:returns: The MD5 hash of the file