def check_path(path, otherwise):

    if os.path.exists(path):
        print("WARNING: Path '%s' already exists; skipping" % path)
    else:
        otherwise(path)
Create a new pool from attributes
dataset/ETHPy150Open dailymuse/oz/oz/core/actions.py/check_path--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/network/v2/_proxy.py/Proxy.create_pool