code: def test_unique_edges():
      faces = np.array([[0, 1, 2], [1, 2, 0]])
      e = array_to_set([[1, 2], [0, 1], [0, 2]])
  
      u = unique_edges(faces)
      nt.assert_equal(e, array_to_set(u))
  
      u, m = unique_edges(faces, return_mapping=True)
      nt.assert_equal(e, array_to_set(u))
      edges = [[[0, 1], [1, 2], [2, 0]], [[1, 2], [2, 0], [0, 1]]]
      nt.assert_equal(np.sort(u[m], -1), np.sort(edges, -1))
  
imports: import numpy
  import numpy.testing
  import pytest
  import warnings
  from dipy.core.sphere import Sphere, HemiSphere, unique_edges, unique_sets, faces_from_sphere_vertices, disperse_charges, fibonacci_sphere, disperse_charges_alt, _get_forces, _get_forces_alt, unit_octahedron, unit_icosahedron, hemi_icosahedron
  from dipy.core.geometry import cart2sphere, vector_norm
  from dipy.core.sphere_stats import random_uniform_on_sphere
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 7 for calling a global function with example usage: test_unique_edges() without return types