code: def save_info(results, save_path):
      of = open(save_path, "w")
      of.write("| 模型 | 使用TRT | 数值类型 | mIoU(%) | 耗时(ms/img) | FPS |\n")
      of.write(
          "|  -  |   :-:   |   :-:  |  :-: |    :-:      |  :-:|\n"
      )
      model_names = list(results.keys())
      model_names.sort()
  
      def write_helper(model_name, use_trt, dtype, info):
          miou = (
              "-"
              if info["miou"] is None
              else round(100 * info["miou"], 2)
          )
          time = "-" if info["time"] is None else info["time"]
          fps = (
              "-"
              if info["time"] is None
              else round(1000.0 / info["time"], 2)
          )
          of.write(
              "| {:<60} | {} | {} | {:<6} | {:<8} | {:<6} | \n".format(
                  model_name, use_trt, dtype, miou, time, fps
              )
          )
  
      for model_name in model_names:
          info = results[model_name]
          if "Naive_fp32" in info:
              write_helper(model_name, "N", "FP32", info["Naive_fp32"])
          if "TRT_fp32" in info:
              write_helper(model_name, "Y", "FP32", info["TRT_fp32"])
          if "TRT_fp16" in info:
              write_helper(model_name, "Y", "FP16", info["TRT_fp16"])
  
      of.close()
  
imports: import argparse
  import re
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: save_info(results, save_path) without return types