code: def detect_buffer_access_lca(func: PrimFunc) -> Dict[Buffer, Stmt]:
      """Detect the lowest common ancestor(LCA) of buffer access, including both high-level
      access (BufferLoad, BufferStore) and low-level access (BufferLoad, BufferStore and opaque
      access).
      The LCA may be a For loop or a Block.
  
      Parameters
      ----------
      func: tvm.tir.PrimFunc
          The function to be detected.
  
      Returns
      -------
      result : Dict[Buffer, Stmt]
          Map from buffer to the LCA of all access to it.
      """
      return _ffi_api.detect_buffer_access_lca(func)
  
imports: from typing import Dict, List, Optional, Union
  import tvm
  from tvm import Object
  from tvm.ir import IRModule
  from tvm.tir.expr import Var
  from tvm.tir.stmt import Block, BufferRegion, PrimExpr
  from ..None import Buffer, Stmt
  from ..function import PrimFunc
  from .None import _ffi_api
label_desc: Use image node_id 10 for calling a global function with example usage: detect_buffer_access_lca(func) and returns: _ffi_api