code: def test_array_equal_two_arrays(arrays, unit_tol, with_sign):
      array_a, array_b = arrays
      equal = array_equal(
          array_a, array_b, unit_tol, with_sign=with_sign
      )
      equal_flipped = array_equal(
          array_b, array_a, unit_tol, with_sign=with_sign
      )
      note(equal)
      difference = equal.compute_difference()
      a, b = (
          (array_a, array_b)
          if with_sign
          else (np.abs(array_a), np.abs(array_b))
      )
      expect_equal = (
          np.sum(np.abs(a - b) > unit_tol) / array_a.size < 1e-4
      )
      if expect_equal:
          assert_array_equal(
              array_a, array_b, unit_tol, with_sign=with_sign
          )
          assert equal
          assert bool(equal) is True
          assert equal == True  # noqa: E712
          assert True == equal  # noqa: E712
          assert equal != False  # noqa: E712
          assert False != equal  # noqa: E712
          assert equal_flipped
          assert bool(equal_flipped) is True
          assert equal_flipped == True  # noqa: E712
          assert True == equal_flipped  # noqa: E712
          assert equal_flipped != False  # noqa: E712
          assert False != equal_flipped  # noqa: E712
      else:
          with pytest.raises(AssertionError):
              assert_array_equal(
                  array_a, array_b, unit_tol, with_sign=with_sign
              )
          assert not equal
          assert bool(equal) is not True
          assert equal != True  # noqa: E712
          assert True != equal  # noqa: E712
          assert equal == False  # noqa: E712
          assert False == equal  # noqa: E712
          assert difference != 0
  
file_path: cuml/python/cuml/tests/test_utils.py
imports: from hypothesis.extra.numpy import array_shapes, arrays, floating_dtypes, integer_dtypes
  from hypothesis import target
  from hypothesis import strategies
  from hypothesis import given, note
  from cuml.testing.utils import array_equal, assert_array_equal
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 2 for calling a global function with example usage: test_array_equal_two_arrays(arrays, unit_tol, with_sign) without return types