class_docstr: Test handling of CUDA exceptions.
class_docstr_tok: ["Test","handling","of","CUDA","exceptions","."]
docstr: Test handling of a cuDNN error.
docstr_tok: ["Test","handling","of","a","cuDNN","error","."]
code: def test_is_cudnn_error(self):
      """Test handling of a cuDNN error."""
      error = RuntimeError(_CUDNN_ERROR)
      self.assertTrue(is_cudnn_error(runtime_error=error))
      self.assertFalse(is_cuda_oom_error(runtime_error=error))
  
      error = Exception("Something else.")
      self.assertFalse(
          is_cudnn_error(runtime_error=self.not_cuda_error)
      )
  
imports: import unittest
  from pykeen.utils import _CUDA_OOM_ERROR, _CUDNN_ERROR, is_cuda_oom_error, is_cudnn_error
label_desc: Use image node_id 2 for calling the TestCudaExceptionsHandling obj's underlying member method code with example usage: obj.test_is_cudnn_error() without return types