def check_path(path, otherwise):

    if os.path.exists(path):
        print("WARNING: Path '%s' already exists; skipping" % path)
    else:
        otherwise(path)
Checks if a path exists. If it does, print a warning message; if not,
dataset/ETHPy150Open dailymuse/oz/oz/core/actions.py/check_path