code: def elu(
      x: paddle.Tensor,
      /,
      *,
      alpha: float = 1.0,
      out: Optional[paddle.Tensor] = None,
  ) -> paddle.Tensor:
      if paddle.is_complex(x):
          ret = (
              paddle_backend.where(
                  paddle_backend.greater(x, 0),
                  x,
                  paddle_backend.multiply(
                      alpha, paddle_backend.expm1(x)
                  ),
              ),
          )
          return ret
      return F.elu(x, alpha=alpha)
  
file_path: ivy/ivy/functional/backends/paddle/experimental/activations.py
imports: from typing import Optional, Union, Literal
  import paddle
  import paddle.nn.functional
  import ivy.functional.backends.paddle
  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 7 for calling a global function with example usage: elu() and returns: F, ret