code: def test_match_buffer():
      func = match_buffer_func
      A, B = [func.buffer_map[x] for x in func.params]
      lca = tir.analysis.detect_buffer_access_lca(func)
  
      root_block = func.body.block
      block = root_block.body.body.body.block
      block_inner = block.body[0].body.body.block
  
      # LCA of Buffer C is the inner block
      assert lca[A] == block_inner
  
      # LCA of Buffer C is the main block
      assert lca[B] == block
  
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 9 for calling a global function with example usage: test_match_buffer() without return types