docs: def nvmlUnitGetLedState(unit):
      r"""
      /**
       * Retrieves the LED state associated with this unit.
       *
       * For S-class products.
       *
       * See \ref nvmlLedState_t for details on allowed states.
       *
       * @param unit                                 The identifier of the target unit
       * @param state                                Reference in which to return the current LED state
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a state has been set
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit is invalid or \a state is NULL
       *         - \ref NVML_ERROR_NOT_SUPPORTED     if this is not an S-class product
       *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
       *
       * @see nvmlUnitSetLedState()
       */
      nvmlReturn_t DECLDIR nvmlUnitGetLedState
      """
      """
  /**
   * Retrieves the LED state associated with this unit.
   *
   * For S-class products.
   *
   * See \ref nvmlLedState_t for details on allowed states.
   *
   * @param unit                                 The identifier of the target unit
   * @param state                                Reference in which to return the current LED state
   *
   * @return
   *         - \ref NVML_SUCCESS                 if \a state has been set
   *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
   *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit is invalid or \a state is NULL
   *         - \ref NVML_ERROR_NOT_SUPPORTED     if this is not an S-class product
   *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
   *
   * @see nvmlUnitSetLedState()
   */
      """
      c_state =  c_nvmlLedState_t()
      fn = _nvmlGetFunctionPointer("nvmlUnitGetLedState")
      ret = fn(unit, byref(c_state))
      _nvmlCheckReturn(ret)
      return bytes_to_str(c_state)