code: def serialize_records(records, system_specs, filename):
      with open(filename, "w+") as fd:
          s = "| Town | Sensors | Weather | # of Vehicles | # of Walkers | Samples | Mean FPS | Std FPS |\n"
          s += "| ----------- | ----------- | ----------- | ----------- | ----------- | ----------- | ----------- |\n"
          fd.write(s)
  
          for sensor_key in sorted(records.keys()):
              list_records = records[sensor_key]
              for record in list_records:
                  s = "| {} | {} | {} | {} | {} | {} | {:03.2f} | {:03.2f} |\n".format(
                      record["town"],
                      record["sensors"],
                      record["weather"],
                      record["n_vehicles"],
                      record["n_walkers"],
                      record["samples"],
                      record["fps_mean"],
                      record["fps_std"],
                  )
                  fd.write(s)
  
          s = "\n| Global mean FPS | Global std FPS |\n"
          s += "| **{:03.2f}** | **{:03.2f}** |\n".format(
              *get_total(records)
          )
          fd.write(s)
  
          s = "Table: {}.\n".format(system_specs)
          fd.write(s)
  
imports: import sys
  from tr import tr
  import argparse
  import cpuinfo
  import glob
  import math
  import numpy
  import os
  import psutil
  import pygame
  import shutil
  import GPUtil
  import threading
  import time
  import logging
  import carla
label_desc: Use image node_id 9 for calling a global function with example usage: serialize_records(records, system_specs, filename) without return types