docs: def nvmlDeviceSetPersistenceMode(handle, mode):
      r"""
      /**
       * Set the persistence mode for the device.
       *
       * For all products.
       * For Linux only.
       * Requires root/admin permissions.
       *
       * The persistence mode determines whether the GPU driver software is torn down after the last client
       * exits.
       *
       * This operation takes effect immediately. It is not persistent across reboots. After each reboot the
       * persistence mode is reset to "Disabled".
       *
       * See \ref nvmlEnableState_t for available modes.
       *
       * @param device                               The identifier of the target device
       * @param mode                                 The target persistence mode
       *
       * @return
       *         - \ref NVML_SUCCESS                 if the persistence mode was 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 mode is invalid
       *         - \ref NVML_ERROR_NOT_SUPPORTED     if the device does not support this feature
       *         - \ref NVML_ERROR_NO_PERMISSION     if the user doesn't have permission to perform this operation
       *         - \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
       *
       * @see nvmlDeviceGetPersistenceMode()
       */
      nvmlReturn_t DECLDIR nvmlDeviceSetPersistenceMode
      """
      fn = _nvmlGetFunctionPointer("nvmlDeviceSetPersistenceMode")
      ret = fn(handle, _nvmlEnableState_t(mode))
      _nvmlCheckReturn(ret)
      return None