code: def trunc(x, /):
      """Rounds each element x_i of the input array x to the nearest integer-valued number that is closer to zero than x_i."""
      (x,) = _promote_dtypes("trunc", x)
      if _isdtype(x.dtype, "integral"):
          return x
      return jax.numpy.trunc(x)
  
imports: import jax
  from jax.experimental.array_api._data_type_functions import result_type, isdtype
  import numpy
label_desc: Use image node_id 60 for calling a global function with example usage: trunc() and returns: jax, x