def check_input_files(files):

    for filename in files:
        if not os.path.exists(filename):
            raise CommandError("{} does not exist".format(filename))
Make sure all input files exist.
dataset/ETHPy150Open hellerbarde/stapler/staplelib/iohelper.py/check_input_files