code: def test_ctxGetDevice(self):
      with cupy.cuda.Device(1):
          dev = driver.ctxGetDevice()
          assert dev == 1
      with cupy.cuda.Device(0):
          dev = driver.ctxGetDevice()
          assert dev == 0
  
file_path: cupy/tests/cupy_tests/cuda_tests/test_driver.py
imports: import pickle
  import threading
  import unittest
  import cupy
  from cupy import testing
  from cupy.cuda import driver
label_desc: Use image node_id 3 for calling the TestDriver obj's underlying member method code with example usage: obj.test_ctxGetDevice() without return types