code: def assert_allclose(
      actual,
      desired,
      rtol=1e-07,
      atol=0,
      equal_nan=True,
      err_msg="",
      verbose=True,
  ):
      """Check if two arrays are equal up to a given relevant and absolute tolerance.
  
      See the `NumPy documentation <https://numpy.org/doc/stable/reference/generated/numpy.testing.assert_array_equal.html>`_ for more details.
      """
      np.testing.assert_allclose(
          T.to_numpy(actual),
          T.to_numpy(desired),
          rtol=rtol,
          atol=atol,
          equal_nan=equal_nan,
          err_msg=err_msg,
          verbose=verbose,
      )
  
file_path: tensorly/tensorly/testing.py
imports: import sys
  from inspect import getfullargspec
  import numpy
  from tensorly import backend
label_desc: Use image node_id 3 for calling a global function with example usage: assert_allclose(actual, desired, rtol, atol, equal_nan, err_msg, verbose) without return types