code: def softplus(
      x: paddle.Tensor,
      /,
      *,
      beta: Optional[Union[int, float]] = None,
      threshold: Optional[Union[int, float]] = None,
      complex_mode="jax",
      out: Optional[paddle.Tensor] = None,
  ) -> paddle.Tensor:
      if beta is not None and beta != 1:
          x_beta = x * beta
          res = (
              ivy.add(
                  ivy.log1p(ivy.exp(-ivy.abs(x_beta))),
                  ivy.maximum(x_beta, 0),
              )
          ) / beta
      else:
          x_beta = x
          res = ivy.add(
              ivy.log1p(ivy.exp(-ivy.abs(x_beta))),
              ivy.maximum(x_beta, 0),
          )
      if threshold is not None:
          return ivy.where(x_beta > threshold, x, res).astype(x.dtype)
      return res.astype(x.dtype)
  
file_path: ivy/ivy/functional/backends/paddle/activations.py
imports: from typing import Optional, Union, Literal
  import paddle
  import paddle.nn.functional
  import ivy.functional.backends.paddle
  import ivy
  from ivy.func_wrapper import with_unsupported_device_and_dtypes, with_supported_dtypes, with_supported_device_and_dtypes
  from .None import backend_version
label_desc: Use image node_id 6 for calling a global function with example usage: softplus() and returns: res, ivy