docs: def nvmlDeviceGetPowerManagementMode(handle):
      r"""
      /**
       * This API has been deprecated.
       *
       * Retrieves the power management mode associated with this device.
       *
       * For products from the Fermi family.
       *     - Requires \a NVML_INFOROM_POWER version 3.0 or higher.
       *
       * For from the Kepler or newer families.
       *     - Does not require \a NVML_INFOROM_POWER object.
       *
       * This flag indicates whether any power management algorithm is currently active on the device. An
       * enabled state does not necessarily mean the device is being actively throttled -- only that
       * that the driver will do so if the appropriate conditions are met.
       *
       * See \ref nvmlEnableState_t for details on allowed modes.
       *
       * @param device                               The identifier of the target device
       * @param mode                                 Reference in which to return the current power management mode
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a mode 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 mode 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 nvmlDeviceGetPowerManagementMode
      """
      c_pcapMode = _nvmlEnableState_t()
      fn = _nvmlGetFunctionPointer("nvmlDeviceGetPowerManagementMode")
      ret = fn(handle, byref(c_pcapMode))
      _nvmlCheckReturn(ret)
      return bytes_to_str(c_pcapMode.value)