def _clean_check(cmd, target):
    try:
        subprocess.check_call(cmd)
    except subprocess.CalledProcessError:
        if os.access(target, os.F_OK):
            os.unlink(target)
        raise
Run the command to download target. If the command fails, clean up before
dataset/ETHPy150Open akamai-open/api-kickstart/examples/python/tools/ez_setup.py/_clean_check