pynvml provides Python access to the NVML library for GPU diagnostics.