code: def init_cuda_context_fixture():
      import pycuda.driver as cuda
  
      cuda.init()
      ctx = make_default_context()
      assert isinstance(ctx.get_device().name(), str)
      assert isinstance(ctx.get_device().compute_capability(), tuple)
      assert isinstance(ctx.get_device().get_attributes(), dict)
      yield
  
      from gc import collect
  
      ctx.pop()
      clear_context_caches()
      collect()
  
imports: import pycuda.driver
  import pycuda._driver
  import numpy
  from pycuda.compyte.dtypes import register_dtype, get_or_register_dtype, _fill_dtype_registry, dtype_to_ctype
label_desc: Use image node_id 12 for calling a global function with example usage: init_cuda_context_fixture() without return types