class_docstr: Test alloc and free within the same scope with a reuse chance.
class_docstr_tok: ["Test","alloc","and","free","within","the","same","scope","with","a","reuse","chance","."]
code: def before(self):
      @T.prim_func
      def func():
          threadIdx_x = T.launch_thread("threadIdx.x", 128)
          A_sh_data = T.allocate([128], "float32", "shared.dyn")
          B_sh_data = T.allocate([128], "float32", "shared.dyn")
          A_sh = T.decl_buffer(
              [128], data=A_sh_data, scope="shared.dyn"
          )
          B_sh = T.decl_buffer(
              [128], data=B_sh_data, scope="shared.dyn"
          )
          A_sh[threadIdx_x] = 0
          B_sh[threadIdx_x] = 0
  
      return func
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.driver.build_module import schedule_to_module
  from tvm.topi.math import cast
  from tvm.script import tir
label_desc: Use image node_id 1 for calling the TestSimpleAllocReuse obj's underlying member method code with example usage: obj.before() and returns: func