def try_run(commands):
    null = open(os.devnull, 'w')
    for command in commands:
        retcode = subprocess.call(command, stdout=null, shell=True,
                stderr=subprocess.STDOUT)
        if retcode != 0:
            return False
    return True
HEAD an object.
dataset/ETHPy150Open sympy/sympy/sympy/external/tests/test_codegen.py/try_run--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/billing-export-python/cloudstorage/storage_api.py/_StorageApi.head_object_async