NVML Shared Library Not Found

I am trying to execute this code snipped from the tutorial

from pynvml import *
handle = nvmlDeviceGetHandleByIndex(0)
info = nvmlDeviceGetMemoryInfo(handle)
print("Total memory:", info.total)
print("Free memory:", info.free)
print("Used memory:", info.used)

but keep getting the ‘NVML Shared Library Not Found’ error. The .dll file is located in /system32 folder, what I added to PATH, yet the code still fails.
Has anyone faced / solved it?