code: def test_global_buffer_with_blockidx():
      func = global_buffer_with_blockidx
      A, B = [func.buffer_map[x] for x in func.params]
      lca = tir.analysis.detect_buffer_access_lca(func)
  
      root_block = func.body.block
      blockidx_loop = root_block.body
      # LCA of both A and B should be the loop bound to `blockIdx`
      assert lca[A] == blockidx_loop
      assert lca[B] == blockidx_loop
  
file_path: tvm/tests/python/tir-analysis/test_tir_analysis_detect_buffer_access_lca.py
imports: import tvm
  from tvm import tir
  from tvm.script import tir
label_desc: Use image node_id 10 for calling a global function with example usage: test_global_buffer_with_blockidx() without return types