def METHOD_NAME(gt_result, infer_result, args):
    platform = args.platform
    if len(gt_result) != len(infer_result):
        infer_result = infer_result[-len(gt_result):]
    diff = np.abs(gt_result - infer_result)
    label_diff = diff[:, -1]
    score_diff = diff[:, -2]
    boxes_diff = diff[:, :-2]
    boxes_diff_ratio = boxes_diff / (infer_result[:, :-2] + 1e-6)
    label_diff_threshold = diff_score_threshold[platform]["label_diff"]
    score_diff_threshold = diff_score_threshold[platform]["score_diff"]
    boxes_diff_threshold = diff_score_threshold[platform]["boxes_diff"]
    boxes_diff_ratio_threshold = diff_score_threshold[platform][
        "boxes_diff_ratio"]
    is_diff = False
    backend = args.result_path.split(".")[0]
    if (label_diff > label_diff_threshold).any():
        print(args.platform, args.device, "label diff ", label_diff)
        is_diff = True
        label_diff_bool_file = args.platform + "_" + backend + "_" + "label_diff_bool.txt"
        save_numpy_result(label_diff_bool_file,
                          label_diff > label_diff_threshold)
    if (score_diff > score_diff_threshold).any():
        print(args.platform, args.device, "score diff ", score_diff)
        is_diff = True
        score_diff_bool_file = args.platform + "_" + backend + "_" + "score_diff_bool.txt"
        save_numpy_result(score_diff_bool_file,
                          score_diff > score_diff_threshold)
    if (boxes_diff_ratio > boxes_diff_ratio_threshold).any() and (
            boxes_diff > boxes_diff_threshold).any():
        print(args.platform, args.device, "boxes diff ", boxes_diff_ratio)
        is_diff = True
        boxes_diff_bool_file = args.platform + "_" + backend + "_" + "boxes_diff_bool.txt"
        boxes_diff_ratio_file = args.platform + "_" + backend + "_" + "boxes_diff_ratio.txt"
        boxes_diff_ratio_bool_file = args.platform + "_" + backend + "_" + "boxes_diff_ratio_bool.txt"
        save_numpy_result(boxes_diff_bool_file,
                          boxes_diff > boxes_diff_threshold)
        save_numpy_result(boxes_diff_ratio_file, boxes_diff_ratio)
        save_numpy_result(boxes_diff_ratio_bool_file,
                          boxes_diff_ratio > boxes_diff_ratio_threshold)
    if is_diff:
        write2file("result.txt")
    else:
        print(args.platform, args.device, "No diff")