code: def cast_to_f8(f8_dtype: str, promote_dtype: str, v):
      return T.reinterpret(
          f8_dtype, cast_to_uint8(f8_dtype, promote_dtype, v)
      )
  
file_path: tvm/tests/python/tir-transform/test_tir_transform_fp8_legalize.py
imports: import tvm
  import tvm.script
  import tvm.testing
  from tvm.script import tir
label_desc: Use image node_id 3 for calling a global function with example usage: cast_to_f8(f8_dtype, promote_dtype, v) and returns: T