def _check_integrity(self):
    root = self.root
    for fentry in (self.train_list + self.test_list):
        (filename, md5) = (fentry[0], fentry[1])
        fpath = os.path.join(root, self.base_folder, filename)
        if (not check_integrity(fpath, md5)):
            return False
    return True
def _check_integrity(self):
    root = self.root
    for fentry in (self.train_list + self.test_list):
        (filename, md5) = (fentry[0], fentry[1])
        fpath = os.path.join(root, self.base_folder, filename)
        if (not check_integrity(fpath, md5)):
            return False
    return True