code: def test_ir_builder_tir_decl_buffer():
      with IRBuilder() as ib:
          with T.decl_buffer([128, 128], "float32"):
              T.evaluate(0)
  
      # the decl_buffer generated by IRBuilder
      ir_actual = ib.get()
  
      # the expected decl_buffer
      buffer = T.Buffer((128, 128), "float32")
      ir_expected = tir.Allocate(
          buffer.data,
          "float32",
          (128, 128),
          tir.IntImm("bool", True),
          tir.DeclBuffer(buffer, tir.Evaluate(0)),
      )
  
      # Check if the generated ir is expected
      assert_structural_equal(
          ir_actual, ir_expected, map_free_vars=True
      )
  
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import tir
  from tvm.ir.base import assert_structural_equal
  from tvm.runtime import ndarray
  from tvm.script.ir_builder import IRBuilder
  from tvm.script.ir_builder import tir
label_desc: Use image node_id 19 for calling a global function with example usage: test_ir_builder_tir_decl_buffer() without return types