code: def upcast_test(
      src_dtype,
      dst_dtype,
      exponent_bits,
      mantissa_bits,
      exponent_bias,
      max_repr,
  ):
      numbits_src = exponent_bits + mantissa_bits + 1
  
      src = launch_exhaustive_populate(
          src_dtype, 0, 65536, False, numbits_src, max_repr
      )
  
      dst = launch_type_convert_triton(src, src_dtype, dst_dtype)
      dst = launch_type_convert_triton(dst, dst_dtype, tl.float32)
  
      dst2 = launch_upcast_emulated(
          src, exponent_bits, mantissa_bits, exponent_bias
      )
  
      assert torch.equal(dst, dst2)
  
file_path: triton/python/test/unit/language/test_conversions.py
imports: import numpy
  import torch
  import pytest
  import triton
  import triton.language
label_desc: Use image node_id 12 for calling a global function with example usage: upcast_test(src_dtype, dst_dtype, exponent_bits, mantissa_bits, exponent_bias, max_repr) without return types