code: def test_major_version():
      major = runtime._getCUDAMajorVersion()
      if runtime.is_hip:
          assert major == 0
      else:
          assert 10 < major < 20
  
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 2 for calling a global function with example usage: test_major_version() without return types