code: def parse_segments_0(segment):
      index = segment.rfind(" ") + 1
      data = segment[index:].split(":")
      value = data[1]
      name_unit = data[0].split(".")
      if name_unit[0] in METRICS_NAME_SET:
          name = name_unit[0]
          unit = UNIT_MAP[name_unit[1]]
      else:
          name = None
          unit = None
  
      return name, unit, value
  
file_path: serve/benchmarks/utils/gen_metrics_json.py
imports: import argparse
  import csv
  import json
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: parse_segments_0(segment) and returns: name,  unit,  value