code: def get_args():
      """Add commandline arguments to run the script manually if needed"""
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--lwp-json", help="LWP json file", required=True
      )
      parser.add_argument(
          "--serial-num", help="device-id/simulator", required=True
      )
      parser.add_argument(
          "--test-so", help="Test shared library", required=True
      )
      parser.add_argument(
          "--run-log",
          help="Logcat file for on-device run and stdout.txt for simulator run",
          required=True,
      )
      parser.add_argument(
          "--lwp-out", help="LWP output file name", required=True
      )
      parser.add_argument(
          "--debug",
          help="Enable debug output from the script",
          dest="debug",
          action="store_true",
          required=False,
      )
      parser.set_defaults(debug=False)
      args = parser.parse_args()
  
      global ENABLE_DEBUG
      ENABLE_DEBUG = args.debug
  
      return args
  
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 9 for calling a global function with example usage: get_args() and returns: args