code: def GetEccByCounter(handle, counterType):
      strResult = ""
      strResult += "        <single_bit>\n"
      strResult += str(
          GetEccByType(
              handle, counterType, NVML_MEMORY_ERROR_TYPE_CORRECTED
          )
      )
      strResult += "        </single_bit>\n"
      strResult += "        <double_bit>\n"
      strResult += str(
          GetEccByType(
              handle, counterType, NVML_MEMORY_ERROR_TYPE_UNCORRECTED
          )
      )
      strResult += "        </double_bit>\n"
      return strResult
  
file_path: py3nvml/py3nvml/nvidia_smi.py
imports: from .py3nvml import *
  import datetime
  import warnings
  import logging
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: GetEccByCounter(handle, counterType) and returns: strResult