class_docstr: Test alloc and free within the same scope.
class_docstr_tok: ["Test","alloc","and","free","within","the","same","scope","."]
code: def expected(self):
      @T.prim_func
      def func():
          threadIdx_x = T.launch_thread("threadIdx.x", 128)
          buf_dyn_shmem = T.allocate([1024], "uint8", "shared.dyn")
          A_sh = T.decl_buffer(
              (128,), data=buf_dyn_shmem, scope="shared.dyn"
          )
          B_sh = T.decl_buffer(
              (128,), data=buf_dyn_shmem, scope="shared.dyn"
          )
          B_sh[threadIdx_x + 128] = A_sh[threadIdx_x]
  
      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 2 for calling the TestSimpleAllocNoReuse obj's underlying member method code with example usage: obj.expected() and returns: func