code: def parse_segments_1(csv_dict, segment):
      data = segment[1:].split(",")
      dimensions = [
          {"Name": "batch_size", "Value": csv_dict["Batch size"]}
      ]
      for d in data:
          dimension = d.split(":")
          dimensions.append(
              {"Name": dimension[0], "Value": dimension[1]}
          )
  
      return dimensions
  
file_path: serve/benchmarks/utils/gen_metrics_json.py
imports: import argparse
  import csv
  import json
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: parse_segments_1(csv_dict, segment) and returns: dimensions