code: def scaled_tanh(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      alpha: float = 1.7159,
      beta: float = 0.67,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Compute the scaled hyperbolic tangent (tanh) activation.
  
      The scaled tanh activation function is defined as:
      out = alpha * tanh(beta * x)
  
  
      Parameters
      ----------
      x
          input array.
      alpha
          The scaling parameter for the output.
          Determines the amplitude of the tanh function.
          Default: 1.7159
      beta
          The scaling parameter for the input.
          Determines the slope of the tanh function.
          Default: 0.67
      out
          optional output array, for writing the result to. It must have a shape that the
          inputs broadcast to.
  
      Returns
      -------
      ret
           The input array after applying the scaled tanh activation.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([22.])
      >>> y = ivy.scaled_tanh(x)
      >>> y
      ivy.array([1.71589994]))
  
      >>> x = ivy.array([4.0, 7.0])
      >>> y = ivy.scaled_tanh(x, alpha=1.2, beta=5)
      >>> y
      ivy.array([1.20000005, 1.20000005])
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([1.2, -1.2]), b=ivy.array([4.4, -2.2]))
      >>> y = ivy.scaled_tanh(x)
      >>> y
      {
          a: ivy.array([1.14324772, -1.14324772]),
          b: ivy.array([1.70648694, -1.54488957])
      }
      >>> x = ivy.Container(a=ivy.array([1.2]), b=ivy.array([4.4]))
      >>> y = ivy.scaled_tanh(x, alpha=0.2, beta=0.5)
      >>> y
      {
      a: ivy.array([0.10740992]),
      b: ivy.array([0.19514863])
      }
      """
      return current_backend(x).scaled_tanh(
          x, alpha=alpha, beta=beta, out=out
      )
  
imports: from typing import Union, Optional, Callable, Literal
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.utils.exceptions import handle_exceptions
  from ivy.func_wrapper import handle_array_function, handle_nestable, to_native_arrays_and_back, handle_array_like_without_promotion, handle_out_argument, inputs_to_ivy_arrays, handle_device, handle_backend_invalid, handle_complex_input
label_desc: Use image node_id 17 for calling a global function with example usage: scaled_tanh() and returns: current_backend