code: def test_assert_allclose():
      tensor = tl.tensor([5, 5, 5])
  
      assert_allclose(tensor, tensor)
      assert_allclose(tensor, tensor + 1e-10)
  
      with pytest.raises(AssertionError):
          assert_allclose(tensor, tensor + 10)
  
      assert_allclose(tensor, tensor + 1, atol=2)
      with pytest.raises(AssertionError):
          assert_allclose(tensor, tensor + 1, atol=0.5)
  
      assert_allclose(tensor, tensor + 0.1 * tensor, rtol=0.2)
      with pytest.raises(AssertionError):
          assert_allclose(tensor, tensor + 0.1 * tensor, rtol=0.09)
  
imports: import pytest
  import tensorly
  from ..testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_assert_allclose() without return types