def METHOD_NAME(filename):
    """Calculate the MD5 hash of a file."""
    md5 = hashlib.md5()
    with open(filename, 'rb') as f:
        data = f.read()
        md5.update(data)
    return md5.hexdigest()