code: def test_cg_sync(self):
      @jit.rawkernel()
      def test_sync():
          b = jit.cg.this_thread_block()
          g = jit.cg.this_grid()
          jit.cg.sync(b)
          jit.cg.sync(g)
  
      test_sync[2, 64]()
  
file_path: cupy/tests/cupyx_tests/jit_tests/test_cooperative_groups.py
imports: import pytest
  import cupy
  from cupy.cuda import runtime
  from cupyx import jit
label_desc: Use image node_id 5 for calling the TestCooperativeGroups obj's underlying member method code with example usage: obj.test_cg_sync() without return types