code: def test_assert_array_almost_equal():
      tensor = tl.tensor([5, 5, 5])
  
      assert_array_almost_equal(tensor, tensor)
      assert_array_almost_equal(tensor, tensor + 1e-10)
  
      with pytest.raises(AssertionError):
          assert_array_almost_equal(tensor, tensor + 10)
  
      decimal = 3
      assert_array_almost_equal(
          tensor, tensor + 1.5 * 10 ** (-decimal - 1), decimal=decimal
      )
      with pytest.raises(AssertionError):
          assert_array_almost_equal(
              tensor, tensor + 1.5 * 10 ** (-decimal), decimal=decimal
          )
  
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 3 for calling a global function with example usage: test_assert_array_almost_equal() without return types