code: def nvmlDeviceGetPcieReplayCounter(handle):
      r
      c_replay = c_uint()
      fn = _nvmlGetFunctionPointer("nvmlDeviceGetPcieReplayCounter")
      ret = fn(handle, byref(c_replay))
      _nvmlCheckReturn(ret)
      return bytes_to_str(c_replay.value)
docs: r"""
      /**
       * Retrieve the PCIe replay counter.
       *
       * For Kepler &tm; or newer fully supported devices.
       *
       * @param device                               The identifier of the target device
       * @param value                                Reference in which to return the counter's value
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a value has been set
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device is invalid, or \a value is NULL
       *         - \ref NVML_ERROR_NOT_SUPPORTED     if the device does not support this feature
       *         - \ref NVML_ERROR_GPU_IS_LOST       if the target GPU has fallen off the bus or is otherwise inaccessible
       *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
       */
      nvmlReturn_t DECLDIR nvmlDeviceGetPcieReplayCounter