def do_save(path, force=False, read=False):
    if force and read:
        raise ValueError(("The 'force' and 'read' options are "
                          "mutually exclusive."))
         
    # Execute the cell and save the variables.
    return force or (not read and not os.path.exists(path))
Return True or False whether the variables need to be saved or not.
dataset/ETHPy150Open rossant/ipycache/ipycache.py/do_save