code: def update_server_config(server_name, server_tag, server_config):
      cpus = config.DEFAULT_CPUS
      if server_name:
          try:
              cpus = get_host_cpus(server_name)
              if not cpus:
                  cpus = config.DEFAULT_CPUS
          except Exception as e:
              logger.error(
                  "Get cpus on host: {} failed".format(server_name)
              )
              logger.error(str(e))
          if server_config:
              if "cpus" in server_config.keys():
                  cpus = server_config["cpus"]
          # self.hardware = Hardware(name=self.hostname, cpus=cpus)
      if server_tag:
          cpus = int(server_tag.split("c")[0])
      kv = {"cpus": cpus}
      logger.debug(kv)
      if server_config:
          server_config.update(kv)
      else:
          server_config = kv
      return server_config
  
file_path: milvus/tests/benchmark/milvus_benchmark/env/helm_utils.py
imports: import os
  import pdb
  import time
  import logging
  import hashlib
  import traceback
  from yaml import full_load, dump
  from milvus_benchmark import utils
  from milvus_benchmark import config
label_desc: Use image node_id 2 for calling a global function with example usage: update_server_config(server_name, server_tag, server_config) and returns: server_config