def checkmd5(dest, md5sum=None):
    if not os.path.exists(dest):
        return False, 'null'
    with open(dest, 'rb') as f:
        md5value = hashlib.md5()
        while True:
            buf = f.read(4096)
            if not buf:
                break
            md5value.update(buf)
    hexdigest = md5value.hexdigest()

    print('Checking md5sum on %s' % (dest))
    return hexdigest == md5sum, hexdigest
Helper function to read JSON file as OrderedDict
dataset/ETHPy150Open ros/catkin/cmake/test/download_checkmd5.py/checkmd5--crossover with--dataset/ETHPy150Open goldmann/docker-squash/docker_squash/v2_image.py/V2Image._read_json_file