code: def allclose(
      a: Union[ivy.Array, ivy.NativeArray],
      b: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      rtol: float = 1e-05,
      atol: float = 1e-08,
      equal_nan: bool = False,
      out: Optional[ivy.Array] = None,
  ) -> bool:
      """Return a True if the two arrays are element-wise equal within given
      tolerance; otherwise False.
  
      The tolerance values are positive, typically very small numbers.
      The relative difference (rtol * abs(x2)) and the absolute difference
      atol are added together to compare against the absolute difference
      between x1 and x2.
      The default atol is not appropriate for comparing numbers that are
      much smaller than one
  
      Parameters
      ----------
      x1
          First input array.
      x2
          Second input array.
      rtol
          The relative tolerance parameter.
      atol
          The absolute tolerance parameter.
      equal_nan
          Whether to compare NaN's as equal. If True, NaN's in x1 will be
          considered equal to NaN's in x2 in the output array.
      out
          Alternate output array in which to place the result.
          The default is None.
  
      Returns
      -------
      ret
          Returns True if the two arrays are equal within the given tolerance;
          False otherwise.
  
      Examples
      --------
      >>> x1 = ivy.array([1e10, 1e-7])
      >>> x2 = ivy.array([1.00001e10, 1e-8])
      >>> y = ivy.allclose(x1, x2)
      >>> print(y)
      ivy.array(False)
  
      >>> x1 = ivy.array([1.0, ivy.nan])
      >>> x2 = ivy.array([1.0, ivy.nan])
      >>> y = ivy.allclose(x1, x2, equal_nan=True)
      >>> print(y)
      ivy.array(True)
  
      >>> x1 = ivy.array([1e-10, 1e-10])
      >>> x2 = ivy.array([1.00001e-10, 1e-10])
      >>> y = ivy.allclose(x1, x2, rtol=0.005, atol=0.0)
      >>> print(y)
      ivy.array(True)
      """
      return ivy.current_backend().allclose(
          a, b, rtol=rtol, atol=atol, equal_nan=equal_nan, 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 14 for calling a global function with example usage: allclose() and returns: ivy