code: def GetEccStr(handle):
      strResult = ""
      strResult += "      <volatile>\n"
      strResult += str(GetEccByCounter(handle, NVML_VOLATILE_ECC))
      strResult += "      </volatile>\n"
      strResult += "      <aggregate>\n"
      strResult += str(GetEccByCounter(handle, NVML_AGGREGATE_ECC))
      strResult += "      </aggregate>\n"
      return strResult
  
file_path: nvidia-ml-py3/nvidia_smi.py
imports: from pynvml import *
  import datetime
label_desc: Use image node_id 3 for calling a global function with example usage: GetEccStr(handle) and returns: strResult