code: def tanh(x, /):
      """Calculates an implementation-dependent approximation to the hyperbolic tangent for each element x_i of the input array x."""
      (x,) = _promote_dtypes("tanh", x)
      return jax.numpy.tanh(x)
  
imports: import jax
  from jax.experimental.array_api._data_type_functions import result_type, isdtype
  import numpy
label_desc: Use image node_id 59 for calling a global function with example usage: tanh() and returns: jax