code: def tanh_activation_function(x):
      r"""
      Applies the tanh function:
  
      .. math::
  
          \begin{align*}
              y=\tanh(x)
          \end{align*}
  
      """
      return tanh(x)
  
imports: from pyomo.environ import exp, log, tanh
label_desc: Use image node_id 3 for calling a global function with example usage: tanh_activation_function(x) and returns: tanh