code: def activation(data, act_type="relu", **kwargs):
      r"""Applies an activation function element-wise to the input.
  
      The following activation functions are supported:
  
      - `log_sigmoid`: :math:`y = log(\frac{1}{1 + exp(-x)})`
      - `mish`: :math:`y = x * tanh(log(1 + exp(x)))`
      - `relu`: Rectified Linear Unit, :math:`y = max(x, 0)`
      - `sigmoid`: :math:`y = \frac{1}{1 + exp(-x)}`
      - `tanh`: Hyperbolic tangent, :math:`y = \frac{exp(x) - exp(-x)}{exp(x) + exp(-x)}`
      - `softrelu`: Soft ReLU, or SoftPlus, :math:`y = log(1 + exp(x))`
      - `softsign`: :math:`y = \frac{x}{1 + abs(x)}`
  
      Parameters
      ----------
      data : NDArray
          The input array.
      act_type : {'log_sigmoid', 'mish', 'relu', 'sigmoid', 'softrelu', 'softsign', 'tanh'}, required
          Activation function to be applied.
  
      Returns
      -------
      out : NDArray or list of NDArrays
          The output of this function.
      """
      return _api_internal.activation(data, act_type)
  
imports: import numpy
  from .._internal import NDArrayBase
  from .None import _api_internal
  from ...util import set_module
  from ..ndarray import get_dtype_name
label_desc: Use image node_id 5 for calling a global function with example usage: activation(data, act_type) and returns: _api_internal