code: def test_ir_builder_tir_block_base():
      with IRBuilder() as ib:
          with T.block("block"):
              T.evaluate(0)
  
      # the block generated by IRBuilder
      block_realize_actual = ib.get()
  
      # the expected block
      block_expected = tir.Block(
          iter_vars=[],
          reads=[],
          writes=[],
          name_hint="block",
          body=tir.Evaluate(0),
          alloc_buffers=None,
          match_buffers=None,
          annotations={
              "tir.script_parsing_detect_access": tir.IntImm("int64", 3)
          },
      )
      block_realize_expected = tir.BlockRealize(
          iter_values=[],
          predicate=True,
          block=block_expected,
      )
  
      # Check if the generated ir is expected
      assert_structural_equal(
          block_realize_actual,
          block_realize_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 3 for calling a global function with example usage: test_ir_builder_tir_block_base() without return types