code: def get_load_addr(serial_number: str, lwp_json: str, run_log: str):
      """Get load address of the binary file"""
      if serial_number == "simulator":
          basedir = os.path.dirname(lwp_json)
          if run_log is None:
              run_log = os.path.join(basedir, "stdout.txt")
          else:
              # If the directory name is specified for the run_log of the
              # simulator (stdout.txt) then it must be same as lwp_json.
              run_log_dir = os.path.dirname(run_log)
              assert (
                  run_log_dir == "" or run_log_dir == basedir
              ), f"stdout.txt and {os.path.basename(lwp_json)} must be in the same directory"
              run_log = os.path.join(basedir, os.path.basename(run_log))
          # To extract load address for the simulator run
          pattern = compile(r"Model.*: (\w+):")
      else:
          # To extract load address for on-device run
          pattern = compile(r"Model.*: (\w+)")
  
      with open(run_log, "r") as f:
          lines = f.read()
          a = pattern.search(lines)
          load_addr = int(a.group(1), 16)
      if ENABLE_DEBUG:
          print("load_addr : ", load_addr)
      return load_addr
  
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 7 for calling a global function with example usage: get_load_addr(serial_number, lwp_json, run_log) and returns: load_addr