code: def tanh(x):
      """Elementwise hyperbolic tangent function.
  
       .. math:: f(x)=\\tanh(x).
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Input variable. A :math:`(s_1, s_2, ..., s_N)`-shaped float array.
  
      Returns:
          ~chainer.Variable: Output variable. A
          :math:`(s_1, s_2, ..., s_N)`-shaped float array.
  
      .. admonition:: Example
  
          >>> x = np.arange(-1, 4, 2).astype(np.float32)
          >>> x
          array([-1.,  1.,  3.], dtype=float32)
          >>> F.tanh(x).array
          array([-0.7615942,  0.7615942,  0.9950548], dtype=float32)
  
      """
      return Tanh().apply((x,))[0]
  
imports: import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 1 for calling a global function with example usage: tanh(x) and returns: Tanh