code: def test_cast_bound():
      analyzer = tvm.arith.Analyzer()
      x = te.var("x", dtype="int8")
      tmod = tvm.tir.truncmod
      bd = analyzer.const_int_bound(tmod(x, 3).astype("uint32"))
      assert bd.min_value == 0
      assert bd.max_value == 2
  
      bd = analyzer.const_int_bound(
          tmod(x, 3).astype("float32").astype("int32")
      )
      assert bd.min_value == -2
      assert bd.max_value == 2
  
imports: import tvm
  import tvm.testing
  from tvm import te
label_desc: Use image node_id 2 for calling a global function with example usage: test_cast_bound() without return types