def nvmlDeviceGetBrand(handle):
    r"""
    /**
     * Retrieves the brand of this device.
     *
     * For all products.
     *
     * The type is a member of \ref nvmlBrandType_t defined above.
     *
     * @param device                               The identifier of the target device
     * @param type                                 Reference in which to return the product brand type
     *
     * @return
     *         - \ref NVML_SUCCESS                 if \a name 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 type is NULL
     *         - \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 nvmlDeviceGetBrand
    """
    c_type = _nvmlBrandType_t()
    fn = _nvmlGetFunctionPointer("nvmlDeviceGetBrand")
    ret = fn(handle, byref(c_type))
    _nvmlCheckReturn(ret)
    return bytes_to_str(c_type.value)
r"""
    /**
     * Retrieves the brand of this device.
     *
     * For all products.
     *
     * The type is a member of \ref nvmlBrandType_t defined above.
     *
     * @param device                               The identifier of the target device
     * @param type                                 Reference in which to return the product brand type
     *
     * @return
     *         - \ref NVML_SUCCESS                 if \a name 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 type is NULL
     *         - \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 nvmlDeviceGetBrand