code: def get_host_cpus(hostname):
      from kubernetes import client, config
  
      config.load_kube_config()
      client.rest.logger.setLevel(logging.WARNING)
      try:
          v1 = client.CoreV1Api()
          cpus = v1.read_node(hostname).status.allocatable.get("cpu")
      except Exception as e:
          logger.error(traceback.format_exc())
          logger.error(str(e))
          cpus = 0
      finally:
          return cpus
  
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 1 for calling a global function with example usage: get_host_cpus(hostname) and returns: cpus