code: def get_total(records):
      record_vals = [
          item for sublist in records.values() for item in sublist
      ]
      total_mean_fps = sum([r["fps_mean"] for r in record_vals]) / len(
          record_vals
      )
      total_mean_std = sum([r["fps_std"] for r in record_vals]) / len(
          record_vals
      )
      return total_mean_fps, total_mean_std
  
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 10 for calling a global function with example usage: get_total(records) and returns: total_mean_fps,  total_mean_std