code: def relu(
      x: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Apply the rectified linear unit function element-wise.
  
      If the input is complex, then by default each element is set to zero  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
      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 rectified linear unit activation of each element in
          ``x``.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([-1., 0., 1.])
      >>> y = ivy.relu(x)
      >>> print(y)
      ivy.array([0., 0., 1.])
  
      >>> x = ivy.array([1.5, 0.7, -2.4])
      >>> y = ivy.zeros(3)
      >>> ivy.relu(x, out = y)
      >>> print(y)
      ivy.array([1.5, 0.7, 0.])
  
      With :class:`ivy.Container` input:
  
      >>> x = ivy.Container(a=ivy.array([1.0, -1.2]), b=ivy.array([0.4, -0.2]))
      >>> x = ivy.relu(x, out=x)
      >>> print(x)
      {
          a: ivy.array([1., 0.]),
          b: ivy.array([0.40000001, 0.])
      }
      """
      return current_backend(x).relu(x, 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 7 for calling a global function with example usage: relu() and returns: current_backend