code: def test_check_cudnn_version(self):
      with self.assertRaises(RuntimeError):
          build.get_cudnn_version()
      if build.check_cudnn_version(self.compiler, self.settings):
          assert isinstance(build.get_cudnn_version(), int)
          assert isinstance(build.get_cudnn_version(True), str)
  
file_path: cupy/tests/install_tests/test_build.py
imports: from distutils import ccompiler
  from distutils import sysconfig
  import os
  import unittest
  import pytest
  from cupy_builder._context import Context
  from cupy_builder import install_build
label_desc: Use image node_id 3 for calling the TestCheckVersion obj's underlying member method code with example usage: obj.test_check_cudnn_version() without return types