code: def test_bf16_compute_legalize():
      before = get_before()
      expected = get_after_compute_legalize()
      # run the transform twice to ensure we can afford to deal
      # with this repeative optimizations
      after = tvm.tir.transform.BF16ComputeLegalize()(before)
      after = tvm.tir.transform.BF16ComputeLegalize()(after)
  
      tvm.ir.assert_structural_equal(after, expected)
  
file_path: tvm/tests/python/tir-transform/test_tir_transform_bf16_legalize.py
imports: import tvm
  import tvm.script
  from tvm.script import tir
label_desc: Use image node_id 8 for calling a global function with example usage: test_bf16_compute_legalize() without return types