def METHOD_NAME(self) -> None:
    """Reinitialize the nvidia wrapper."""
    if not self.has_gpu():
        return
    self.__handle = []
    with contextlib.suppress(Exception):
        pynvml.nvmlInit()
        self.__ngpus = pynvml.nvmlDeviceGetCount()
        self.__handle.extend(
            pynvml.nvmlDeviceGetHandleByIndex(i)
            for i in range(self.__ngpus)
        )