def check_output_file(filename):

    if os.path.exists(filename):
        raise CommandError("File already exists: {}".format(filename))
Make sure the output file does not exist.
dataset/ETHPy150Open hellerbarde/stapler/staplelib/iohelper.py/check_output_file