code: def get_symbols_and_sizes(object_file):
      cmd = f"nm --print-size --size-sort {object_file} | c++filt"
      output = sbp.check_output(cmd, shell=True).decode("utf-8")
      symbol_sizes = []
      for x in output.split("\n"):
          if len(x) == 0:
              continue
          _, hex_size, _, symbol_name = x.split(" ", 3)
          symbol_name = filter_symbol(symbol_name)
          symbol_sizes.append((symbol_name, int(hex_size, 16)))
      return dict(symbol_sizes)
  
imports: import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_symbols_and_sizes(object_file) and returns: dict