code: def tanh(x):
      """Hyperbolic tangent activation function.
  
      For example:
  
      >>> a = tf.constant([-3.0,-1.0, 0.0,1.0,3.0], dtype = tf.float32)
      >>> b = tf.keras.activations.tanh(a)
      >>> b.numpy()
      array([-0.9950547, -0.7615942,  0.,  0.7615942,  0.9950547], dtype=float32)
  
      Args:
          x: Input tensor.
  
      Returns:
          Tensor of same shape and dtype of input `x`, with tanh activation:
          `tanh(x) = sinh(x)/cosh(x) = ((exp(x) - exp(-x))/(exp(x) + exp(-x)))`.
      """
      return nn.tanh(x)
  
imports: from tensorflow.python.keras import backend
  from tensorflow.python.keras.layers import advanced_activations
  from tensorflow.python.keras.utils.generic_utils import deserialize_keras_object
  from tensorflow.python.keras.utils.generic_utils import serialize_keras_object
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.util import dispatch
label_desc: Use image node_id 9 for calling a global function with example usage: tanh(x) and returns: nn