code: def generate_dma_load_intrin(
      size: int,
      dtype: str,
  ):
      """Generator of dma_load intrins"""
  
      @T.prim_func
      def sync_dma_load_desc(a: T.handle, c: T.handle) -> None:
          A = T.match_buffer(
              a, (size), dtype, offset_factor=1, scope="global"
          )
          C = T.match_buffer(
              c, (size), dtype, offset_factor=1, scope="global.vtcm"
          )
          with T.block("root"):
              T.reads(A[0:size])
              T.writes(C[0:size])
              for i in T.serial(size):
                  with T.block("load"):
                      vii = T.axis.remap("S", [i])
                      C[vii] = A[vii]
  
      @T.prim_func
      def sync_dma_load_impl(a: T.handle, c: T.handle) -> None:
          A = T.match_buffer(
              a, (size), dtype, offset_factor=1, scope="global"
          )
          C = T.match_buffer(
              c, (size), dtype, offset_factor=1, scope="global.vtcm"
          )
          with T.block("root"):
              T.reads(A[0:size])
              T.writes(C[0:size])
              T.evaluate(
                  T.tvm_call_packed(
                      "device_api.hexagon.dma_copy_dltensor",
                      T.tvm_stack_make_array(
                          T.address_of(C[0], dtype="handle"),
                          T.tvm_stack_make_shape(size, dtype="handle"),
                          0,
                          1,
                          C.dtype,
                          0,
                          dtype="handle",
                      ),
                      T.tvm_stack_make_array(
                          T.address_of(A[0], dtype="handle"),
                          T.tvm_stack_make_shape(size, dtype="handle"),
                          0,
                          1,
                          A.dtype,
                          0,
                          dtype="handle",
                      ),
                      T.cast(size, dtype="int"),
                      False,  # Do not use experimental bypass mode.
                      dtype="int32",
                  )
              )
  
      return sync_dma_load_desc, sync_dma_load_impl
  
imports: from tvm.script import tir
  from ..None import TensorIntrin
label_desc: Use image node_id 1 for calling a global function with example usage: generate_dma_load_intrin(size, dtype) and returns: sync_dma_load_desc,  sync_dma_load_impl