docs: def nvmlDeviceGetGpuOperationMode(handle):
      r"""
      /**
       * Retrieves the current GOM and pending GOM (the one that GPU will switch to after reboot).
       *
       * For GK110 M-class and X-class Tesla &tm; products from the Kepler family.
       * Modes \ref NVML_GOM_LOW_DP and \ref NVML_GOM_ALL_ON are supported on fully supported GeForce products.
       * Not supported on Quadro &reg; and Tesla &tm; C-class products.
       *
       * @param device                               The identifier of the target device
       * @param current                              Reference in which to return the current GOM
       * @param pending                              Reference in which to return the pending GOM
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a mode has been populated
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device is invalid or \a current or \a pending 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
       *
       * @see nvmlGpuOperationMode_t
       * @see nvmlDeviceSetGpuOperationMode
       */
      nvmlReturn_t DECLDIR nvmlDeviceGetGpuOperationMode
      """
      c_currState = _nvmlGpuOperationMode_t()
      c_pendingState = _nvmlGpuOperationMode_t()
      fn = _nvmlGetFunctionPointer("nvmlDeviceGetGpuOperationMode")
      ret = fn(handle, byref(c_currState), byref(c_pendingState))
      _nvmlCheckReturn(ret)
      return [c_currState.value, c_pendingState.value]