code: def any_gpu_with_space(gb_needed):
      os.system(
          "nvidia-smi -q -d Memory |grep -A4 GPU|grep Free >tmp_smi"
      )
      memory_available = [
          float(x.split()[2]) / 1024.0
          for i, x in enumerate(open("tmp_smi", "r").readlines())
      ]
      os.remove("tmp_smi")
      return any([mem >= gb_needed for mem in memory_available])
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/metrics/summac/utils_misc.py
imports: import numpy
  import tqdm
  import os
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: any_gpu_with_space(gb_needed) and returns: any