def METHOD_NAME(prog, args):
    parser = argparse.ArgumentParser(prog=prog,
                                     description="Compare the result of two runs of the standard python unittests based on their csv reports.")
    parser.add_argument("-v", "--verbose", help="Verbose output.", action="store_true")
    parser.add_argument("csvfile1", help="first input csv file")
    parser.add_argument("csvfile2", help="first input csv file")
    global flags
    flags = parser.parse_args(args=args)
    print("comparing {} and {}".format(flags.csvfile1, flags.csvfile2))
    raw1 = read_file(flags.csvfile1)
    raw2 = read_file(flags.csvfile2)
    print("number of entries: {} / {}".format(len(raw1.keys()), len(raw2.keys())))
    result = []
    missing_tests = []
    new_tests = []
    for name, data in raw1.items():
        other_data = raw2.get(name)
        if other_data:
            result.append({'name':name, 'old_passing':int(data['num_passes']), 'new_passing':int(other_data['num_passes'])})
        else:
            missing_tests.append(name)
    for name in raw2.keys():
        if not raw1.get(name):
            new_tests.append(name)
    def custom(a):
        return (a['new_passing'] - a['old_passing']) * 1000000 + a['old_passing']
    result = sorted(result, key=custom)
    RED = u"\u001b[31m"
    GREEN = u"\u001b[32m"
    RESET = u"\u001b[0m"
    for entry in result:
        delta = entry['new_passing'] - entry['old_passing']
        if delta != 0:
            print("%s%30s: %d (from %d to %d passing tests)" % (GREEN if delta > 0 else RED, entry['name'], delta, entry['old_passing'], entry['new_passing']))
    print(RESET)    