code: def allclose(a, b, rtol=1.0e-5, atol=1.0e-8, equal_nan=False):
      """Returns True if two arrays are element-wise equal within a tolerance.
  
      Two values in ``a`` and ``b`` are  considiered equal when the following
      equation is satisfied.
  
      .. math::
  
         |a - b| \\le \\mathrm{atol} + \\mathrm{rtol} |b|
  
      Args:
          a (cupy.ndarray): Input array to compare.
          b (cupy.ndarray): Input array to compare.
          rtol (float): The relative tolerance.
          atol (float): The absolute tolerance.
          equal_nan (bool): If ``True``, NaN's in ``a`` will be considered equal
              to NaN's in ``b``.
  
      Returns:
          cupy.ndarray: A boolean 0-dim array.
          If its value is ``True``, two arrays are element-wise equal within
          a tolerance.
  
      .. seealso:: :func:`numpy.allclose`
  
      """
      return isclose(
          a, b, rtol=rtol, atol=atol, equal_nan=equal_nan
      ).all()
  
imports: import numpy
  import cupy
  from cupy import _core
  from cupy._logic import content
label_desc: Use image node_id 2 for calling a global function with example usage: allclose(a, b, rtol, atol, equal_nan) and returns: isclose