code: def softplus(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      beta: Optional[Union[int, float]] = None,
      threshold: Optional[Union[int, float]] = None,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Apply the softplus function element-wise.
  
      If the input is complex, then by default we apply the softplus operation
      `log(1+ exp(x))` to  each element
      If threshold is set we check if either its real part is strictly negative or
      if its real part is zero and its imaginary part is negative then we apply
      `input×β > threshold`.
  
      Parameters
      ----------
      x
          input array.
      beta
          The beta value for the softplus formation. Default: ``None``.
      threshold
          values above this revert to a linear function
          If the input is complex, only its real part is considered. Default: ``None``
      complex_mode
          optional specifier for how to handle complex data types. See
          ``ivy.func_wrapper.handle_complex_input`` for more detail.
      out
          optional output array, for writing the result to. It must have a shape that the
          inputs broadcast to.
  
      Returns
      -------
      ret
          an array containing the softplus activation of each element in ``x``.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([-0.3461, -0.6491])
      >>> y = ivy.softplus(x)
      >>> print(y)
      ivy.array([0.535,0.42])
  
      >>> x = ivy.array([-0.3461, -0.6491])
      >>> y = ivy.softplus(x, beta=0.5)
      >>> print(y)
      ivy.array([1.22, 1.09])
  
      >>> x = ivy.array([1., 2., 3.])
      >>> y = ivy.softplus(x, threshold=2)
      >>> print(y)
      ivy.array([1.31, 2.13, 3.  ])
      """
      return current_backend(x).softplus(
          x, beta=beta, threshold=threshold, out=out
      )
  
imports: from typing import Union, Optional, Callable, Literal
  import ivy
  from ivy.utils.backend import current_backend
  from ivy.func_wrapper import handle_array_function, handle_out_argument, to_native_arrays_and_back, handle_nestable, handle_array_like_without_promotion, handle_device, handle_complex_input, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 12 for calling a global function with example usage: softplus() and returns: current_backend