code: def assert_array_eq(a, b):
      assert a.shape == b.shape
      assert a.dtype == b.dtype
      mask = np.isnan(a)
      assert np.all(np.isnan(b[mask]))
      assert np.all(a[~mask] == b[~mask])
  
file_path: vispy/vispy/geometry/tests/test_triangulation.py
imports: import sys
  from unittest import SkipTest
  import numpy
  from numpy.testing import assert_array_almost_equal
  from vispy.testing import run_tests_if_main
  from vispy.geometry.triangulation import Triangulation
label_desc: Use image node_id 1 for calling a global function with example usage: assert_array_eq(a, b) without return types