code: def fix(
      x: Union[ivy.Array, ivy.NativeArray, float, int, list, tuple],
      /,
      *,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Round an array of floats element-wise to nearest integer towards zero.
      The rounded values are returned as floats.
  
      Parameters
      ----------
      x
          Array input.
      out
          optional output array, for writing the result to.
  
      Returns
      -------
      ret
          Array of floats with elements corresponding to input elements
          rounded to nearest integer towards zero, element-wise.
  
      Examples
      --------
      >>> x = ivy.array([2.1, 2.9, -2.1])
      >>> ivy.fix(x)
      ivy.array([ 2.,  2., -2.])
      """
      return ivy.current_backend(x).fix(x, out=out)
  
imports: from typing import Optional, Union, Tuple, List, Sequence
  from numbers import Number
  import ivy
  from ivy.func_wrapper import handle_out_argument, to_native_arrays_and_back, handle_nestable, handle_partial_mixed_function, handle_array_like_without_promotion, inputs_to_ivy_arrays, handle_array_function, infer_dtype, handle_device, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 15 for calling a global function with example usage: fix() and returns: ivy