class_docstr: CPU allocations can be handled at codegen time
class_docstr_tok: ["CPU","allocations","can","be","handled","at","codegen","time"]
code: def before():
      T.func_attr({"target": T.target("llvm")})
      T.attr("dummy", "device_type", 1)  # kDLCPU
      T.attr("dummy", "device_id", 0)
      ptr = T.allocate([16], "float32")
      buf = T.decl_buffer(16, "float32", data=ptr)
      buf[0] = 0.0
  
imports: import tvm
  import tvm.testing
  from tvm import te
  from tvm.script import tir
  import numpy
  from tvm.tir.schedule.testing import assert_structural_equal_ignore_global_symbol
label_desc: Use image node_id 1 for calling the TestLowerCPUAllocation obj's underlying member method code with example usage: obj.before() without return types