class_docstr: A DeclBuffer of an unused Allocate should be removed
  
  StorageRewrite removes any allocations that are unused.  When it
  does so, any DeclBuffer that refers to that allocation should also
  be removed.
class_docstr_tok: ["A","DeclBuffer","of","an","unused","Allocate","should","be","removed","StorageRewrite","removes","any","allocations","that","are","unused",".","When","it","does","so",",","any","DeclBuffer","that","refers","to","that","allocation","should","also","be","removed","."]
code: def expected(A: T.Buffer(16, "float32"), D: T.Buffer(16, "float32")):
      B = T.decl_buffer(16, dtype="float32")
      C = T.decl_buffer(16, dtype="float32", data=B.data)
  
      for i in range(16):
          B[i] = A[i]
  
      for i in range(16):
          C[i] = 2.0 * B[i]
  
      for i in range(16):
          D[i] = C[i]
  
imports: import sys
  import pytest
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.driver.build_module import schedule_to_module
  from tvm.script import tir
label_desc: Use image node_id 2 for calling the TestNoOrphanedDeclBuffer obj's underlying member method code with example usage: obj.expected(A, D) without return types