docs: def nvmlDeviceSetAccountingMode(handle, mode):
      r"""
      /**
       * Enables or disables per process accounting.
       *
       * For Kepler &tm; or newer fully supported devices.
       * Requires root/admin permissions.
       *
       * @note This setting is not persistent and will default to disabled after driver unloads.
       *       Enable persistence mode to be sure the setting doesn't switch off to disabled.
       *
       * @note Enabling accounting mode has no negative impact on the GPU performance.
       *
       * @note Disabling accounting clears all accounting pids information.
       *
       * See \ref nvmlDeviceGetAccountingMode
       * See \ref nvmlDeviceGetAccountingStats
       * See \ref nvmlDeviceClearAccountingPids
       *
       * @param device                               The identifier of the target device
       * @param mode                                 The target accounting mode
       *
       * @return
       *         - \ref NVML_SUCCESS                 if the new mode has been set
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device or \a mode are invalid
       *         - \ref NVML_ERROR_NOT_SUPPORTED     if the device doesn't support this feature
       *         - \ref NVML_ERROR_NO_PERMISSION     if the user doesn't have permission to perform this operation
       *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
       */
      nvmlReturn_t DECLDIR nvmlDeviceSetAccountingMode
      """
      fn = _nvmlGetFunctionPointer("nvmlDeviceSetAccountingMode")
      ret = fn(handle, _nvmlEnableState_t(mode))
      _nvmlCheckReturn(ret)
      return None