code: def test_assumed_runtime_version():
      # When CUDA Python is enabled, CuPy calculates the CUDA runtime version
      # from NVRTC version. This test ensures that the assumption is correct
      # by running the same logic in non-CUDA Python environment.
      # When this fails, `runtime.runtimeGetVersion()` logic needs to be fixed.
      (major, minor) = nvrtc.getVersion()
      assert (
          runtime._getLocalRuntimeVersion() == major * 1000 + minor * 10
      )
  
file_path: cupy/tests/cupy_tests/cuda_tests/test_runtime.py
imports: import pickle
  import pytest
  import cupy
  from cupy.cuda import driver
  from cupy.cuda import nvrtc
  from cupy.cuda import runtime
label_desc: Use image node_id 1 for calling a global function with example usage: test_assumed_runtime_version() without return types