code: def accumulate_cycles(overall_cycles, func_cycles, func_name):
      """Accumulate function cycles"""
      acc_cycles = overall_cycles[func_name]
      for id in func_cycles:
          assert (
              id in acc_cycles
          ), f"id [{id}] missing in the existing function record"
          assert (
              acc_cycles[id]["start"] == func_cycles[id]["start"]
          ), "Offset value doesn't match with the existing function record."
          acc_cycles[id]["cycles"] += func_cycles[id]["cycles"]
          acc_cycles[id]["count"] += func_cycles[id]["count"]
      overall_cycles.update({func_name: acc_cycles})
      return overall_cycles
  
file_path: tvm/python/tvm/contrib/hexagon/profiling/process_lwp_data.py
imports: import json
  import csv
  import subprocess
  import argparse
  import os
  from re import search, compile
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: accumulate_cycles(overall_cycles, func_cycles, func_name) and returns: overall_cycles