code: def _same_mesh(vertices1, faces1, vertices2, faces2, tol=1e-10):
      """Compare two meshes, using a certain tolerance and invariant to
      the order of the faces.
      """
      # Unwind vertices
      triangles1 = vertices1[np.array(faces1)]
      triangles2 = vertices2[np.array(faces2)]
      # Sort vertices within each triangle
      triang1 = [
          np.concatenate(sorted(t, key=lambda x: tuple(x)))
          for t in triangles1
      ]
      triang2 = [
          np.concatenate(sorted(t, key=lambda x: tuple(x)))
          for t in triangles2
      ]
      # Sort the resulting 9-element "tuples"
      triang1 = np.array(sorted([tuple(x) for x in triang1]))
      triang2 = np.array(sorted([tuple(x) for x in triang2]))
      return triang1.shape == triang2.shape and np.allclose(
          triang1, triang2, 0, tol
      )
  
file_path: scikit-image/skimage/measure/tests/test_marching_cubes.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from skimage.draw import ellipsoid, ellipsoid_stats
  from skimage.measure import marching_cubes, mesh_surface_area
label_desc: Use image node_id 5 for calling a global function with example usage: _same_mesh(vertices1, faces1, vertices2, faces2, tol) and returns: unknown