code: def parse_server_tag(server_tag):
      """paser server tag from server config"""
      # tag format: "8c"/"8c16m"/"8c16m1g"
      if server_tag[-1] == "c":
          p = r"(\d+)c"
      elif server_tag[-1] == "m":
          p = r"(\d+)c(\d+)m"
      elif server_tag[-1] == "g":
          p = r"(\d+)c(\d+)m(\d+)g"
      else:
          raise Exception("Unable to parse server tag")
      m = re.match(p, server_tag)
      cpus = int(m.groups()[0])
      mems = None
      gpus = None
      if len(m.groups()) > 1:
          mems = int(m.groups()[1])
      if len(m.groups()) > 2:
          gpus = int(m.groups()[2])
      return {"cpus": cpus, "mems": mems, "gpus": gpus}
  
file_path: milvus/tests/benchmark/milvus_benchmark/update.py
imports: import sys
  import re
  import logging
  import traceback
  import argparse
  from yaml import full_load, dump
  import config
  import utils
label_desc: Use image node_id 1 for calling a global function with example usage: parse_server_tag(server_tag) and returns: dict