code: def downcast_emulated(
      src,
      dst,
      rounding: tl.constexpr,
      BLOCK_SIZE: tl.constexpr,
      exponent_bits: tl.constexpr,
      mantissa_bits: tl.constexpr,
      exponent_bias: tl.constexpr,
  ):
      tl.static_assert(
          src.dtype.element_ty == tl.float32,
          "src dtype must be float32",
      )
  
      idxs = tl.program_id(0) * BLOCK_SIZE + tl.arange(0, BLOCK_SIZE)
      x = tl.load(src + idxs)
      y = arbitrary_fp32_downcast(
          x, rounding, exponent_bits, mantissa_bits, exponent_bias
      )
      y = y.to(dst.dtype.element_ty, bitcast=True)
      tl.store(dst + idxs, y)
  
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 7 for calling a global function with example usage: downcast_emulated(src, dst, rounding, BLOCK_SIZE, exponent_bits, mantissa_bits, exponent_bias) without return types