code: def assert_allclose(
      x, y, rtol=1e-7, atol=0, equal_nan=True, err_msg="", verbose=True
  ):
      """Raises an AssertionError if two array_like objects are not equal up to a
      tolerance.
  
      Args:
           x(numpy.ndarray or chainerx.ndarray): The actual object to check.
           y(numpy.ndarray or chainerx.ndarray): The desired, expected object.
           rtol(float): Relative tolerance.
           atol(float): Absolute tolerance.
           equal_nan(bool): Allow NaN values if True. Otherwise, fail the
               assertion if any NaN is found.
           err_msg(str): The error message to be printed in case of failure.
           verbose(bool): If ``True``, the conflicting values
               are appended to the error message.
      .. seealso:: :func:`numpy.testing.assert_allclose`
      """
      x = _preprocess_input(x)
      y = _preprocess_input(y)
  
      numpy.testing.assert_allclose(
          x,
          y,
          rtol=rtol,
          atol=atol,
          equal_nan=equal_nan,
          err_msg=err_msg,
          verbose=verbose,
      )
  
file_path: chainer/chainerx/testing/array.py
imports: import numpy.testing
  import chainerx
label_desc: Use image node_id 4 for calling a global function with example usage: assert_allclose(x, y, rtol, atol, equal_nan, err_msg, verbose) without return types