code: def parse_size_to_KB(size_string: str) -> float:
      """Given a size string with various unit, convert
      to KB in float:
  
      wrk binary unit reference
      https://github.com/wg/wrk/blob/master/src/units.c#L29-L33
  
          Example:
              "200.56KB" -> 200.56
              "50MB" -> 51200
              "0.5GB" -> 524288
      """
      # Group 1 - (one or more digits + optional dot + one or more digits)
      # 200.56 / 50 / 0.5
      # Group 2 - (All words)
      # KB / MB / GB
      parsed = re.split(r"(\d+.?\d+)(\w*)", size_string)
      values = [val for val in parsed if val]
  
      if values[1] == "KB":
          return float(values[0])
      elif values[1] == "MB":
          return float(values[0]) * 1024
      elif values[1] == "GB":
          return float(values[0]) * 1024 * 1024
  
      # Bytes
      return float(values[0]) / 1000
  
file_path: ray/release/serve_tests/workloads/serve_test_utils.py
imports: import json
  import logging
  import os
  import random
  import ray
  import re
  import subprocess
  from collections import defaultdict
  from serve_test_cluster_utils import NUM_CPU_PER_NODE
  from subprocess import PIPE
  from typing import Dict, List, Union
label_desc: Use image node_id 3 for calling a global function with example usage: parse_size_to_KB(size_string) and returns: unknown, float, unknown, unknown