code: def nvmlUnitGetUnitInfo(unit):
      r
      """
  /**
   * Retrieves the static information associated with a unit.
   *
   * For S-class products.
   *
   * See \ref nvmlUnitInfo_t for details on available unit info.
   *
   * @param unit                                 The identifier of the target unit
   * @param info                                 Reference in which to return the unit information
   *
   * @return
   *         - \ref NVML_SUCCESS                 if \a info has been populated
   *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
   *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit is invalid or \a info is NULL
   */
      """
      c_info = c_nvmlUnitInfo_t()
      fn = _nvmlGetFunctionPointer("nvmlUnitGetUnitInfo")
      ret = fn(unit, byref(c_info))
      _nvmlCheckReturn(ret)
      return bytes_to_str(c_info)
docs: r"""
      /**
       * Retrieves the static information associated with a unit.
       *
       * For S-class products.
       *
       * See \ref nvmlUnitInfo_t for details on available unit info.
       *
       * @param unit                                 The identifier of the target unit
       * @param info                                 Reference in which to return the unit information
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a info has been populated
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a unit is invalid or \a info is NULL
       */
      nvmlReturn_t DECLDIR nvmlUnitGetUnitInfo