code: def extract_value(key, file):
      INVALID_PREFIXES = ["ds"]
      for p in INVALID_PREFIXES:
          if key.startswith(p):
              return key
      try:
          if key[0] in ["t", "d", "p"]:
              return int(key[1:])
          if key.startswith("bs"):
              if key.endswith("K"):
                  v = key[2:].split("K")
                  return int(v[0]) * 1024
              elif key.endswith("M"):
                  v = key[2:].split("M")
                  return int(v[0]) * 1024 * 1024
              else:
                  return int(key[2:])
      except:
          print(f"{file}: extract_value fails on {key}")
          return None
  
      return key
  
file_path: deepspeed/deepspeed/ops/csrc/aio/py_test/parse_aio_stats.py
imports: import os
  import argparse
label_desc: Use image node_id 2 for calling a global function with example usage: extract_value(key, file) and returns: key, key, int, None, unknown, unknown, int