def METHOD_NAME():
    parser = argparse.ArgumentParser()
    parser.add_argument("querydata", help="query data file", type=str)
    parser.add_argument("database", help="database file", type=str)
    parser.add_argument("--mod-p", help="mod p", type=int)
    parser.add_argument("--test", help="which test", type=TestType.parse)
    args = parser.parse_args()
    testFn = args.test if args.test else isSameTest
    if not testFn:
        print("Given an invalid test type.", file=sys.stderr)
        sys.exit(1)
    args.mod_p = 0 if args.mod_p is None else args.mod_p
    with open(args.querydata) as f:
        querydata = next(readRecord(f, args.mod_p))
    with open(args.database) as db:
        records = tuple(readRecord(db, args.mod_p))
        print(len(records))
        for record in records:
            print(f'{{"HElibVersion":"{getVersion()}","content":{{"scheme":"BGV","slots":', end='')
            print(testFn(record, querydata).__str__().replace(', ', ','), end='')
            print(f'}},"serializationVersion":"0.0.1","type":"Ptxt"}}')