class_docstr: Represent a single GPUDevice
code: def name(self):
      buflen = 1024
      buf = create_string_buffer(buflen)
      fn = _NVML.get_function("nvmlDeviceGetName")
      ret = fn(self.hnd, buf, c_uint(1024))
      _check_return(ret)
      return buf.value.decode("utf-8")
  
imports: import threading
  from ctypes import CDLL, POINTER, Structure, byref, c_uint, c_ulonglong, create_string_buffer
label_desc: Use image node_id 4 for calling the NvidiaDevice obj's underlying member method code with example usage: obj.name() and returns: buf