code: def parse_time_to_ms(time_string: str) -> float:
      """Given a time string with various unit, convert
      to ms in float:
  
      wrk time unit reference
      https://github.com/wg/wrk/blob/master/src/units.c#L17-L21
  
          Example:
              "71.91ms" -> 71.91
              "50us" -> 0.05
              "1.5s" -> 1500
      """
      # Group 1 - (one or more digits + optional dot + one or more digits)
      # 71.91 / 50 / 1.5
      # Group 2 - (All words)
      # ms / us / s
      parsed = re.split(r"(\d+.?\d+)(\w+)", time_string)
      values = [val for val in parsed if val]
  
      if values[1] == "ms":
          return float(values[0])
      elif values[1] == "us":
          return float(values[0]) / 1000
      elif values[1] == "s":
          return float(values[0]) * 1000
  
      # Should not return here in common benchmark
      return values[1]
  
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 2 for calling a global function with example usage: parse_time_to_ms(time_string) and returns: values, float, unknown, unknown