code: def leaky_relu(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      alpha: float = 0.2,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Apply the leaky rectified linear unit function element-wise.
  
      If the input is complex, then by default each element is scaled by `alpha` if
      either its real part is strictly negative or if its real part is zero and its
      imaginary part is negative. This behaviour can be changed by specifying a different
      `complex_mode`.
  
      Parameters
      ----------
      x
          Input array.
      alpha
          Negative slope for ReLU.
      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
          The input array with leaky relu applied element-wise.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([0.39, -0.85])
      >>> y = ivy.leaky_relu(x)
      >>> print(y)
      ivy.array([ 0.39, -0.17])
  
      >>> x = ivy.array([1.5, 0.7, -2.4])
      >>> y = ivy.zeros(3)
      >>> ivy.leaky_relu(x, out=y)
      >>> print(y)
      ivy.array([ 1.5 ,  0.7 , -0.48])
  
      >>> x = ivy.array([[1.1, 2.2, 3.3],
      ...                [-4.4, -5.5, -6.6]])
      >>> ivy.leaky_relu(x, out=x)
      >>> print(x)
      ivy.array([[ 1.1 ,  2.2 ,  3.3 ],
         [-0.88, -1.1 , -1.32]])
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([0.0, -1.2]), b=ivy.array([0.4, -0.2]))
      >>> x = ivy.leaky_relu(x, out=x)
      >>> print(x)
      {
          a: ivy.array([0., -0.24000001]),
          b: ivy.array([0.40000001, -0.04])
      }
      """
      return current_backend(x).leaky_relu(x, alpha=alpha, 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 4 for calling a global function with example usage: leaky_relu() and returns: current_backend