class_docstr: Like TestMergeAllocations, but using T.decl_buffer
class_docstr_tok: ["Like","TestMergeAllocations",",","but","using","T.decl_buffer"]
code: def before(self):
      @I.ir_module
      class mod:
          @T.prim_func
          def __tvm_main__(
              A: T.Buffer(256, "int8"), D: T.Buffer(256, "int8")
          ):
              B = T.decl_buffer([256], "int8")
              T.call_extern("subroutine", A.data, B.data, dtype="int32")
              C = T.decl_buffer([256], "int8")
              T.call_extern("subroutine", B.data, C.data, dtype="int32")
              T.call_extern("subroutine", C.data, D.data, dtype="int32")
  
          @T.prim_func
          def subroutine(
              A: T.Buffer(256, "int8"), B: T.Buffer(256, "int8")
          ):
              for i in range(256):
                  B[i] = A[i]
  
      return mod
  
imports: import sys
  import pytest
  import tvm
  from tvm import PoolInfoProperties, WorkspacePoolInfo
  from tvm.script import tir, ir
  from tvm.target import Target
  from tvm.tir import stmt_functor
  from tvm.tir.usmp import utils
label_desc: Use image node_id 2 for calling the TestMergeAllocationsWithDeclBuffer obj's underlying member method code with example usage: obj.before() and returns: mod