code: def test_add_reverse_edges(a, b_data_expected):
      """Test that the reversal of the edges of the input graph works
      as expected.
      """
      a = csr_matrix(a, dtype=np.int32, shape=(len(a), len(a)))
      b = _add_reverse_edges(a)
      assert_array_equal(b.data, b_data_expected)
  
imports: import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from scipy.sparse import csr_matrix, csc_matrix
  from scipy.sparse.csgraph import maximum_flow
  from scipy.sparse.csgraph._flow import _add_reverse_edges, _make_edge_pointers, _make_tails
label_desc: Use image node_id 14 for calling a global function with example usage: test_add_reverse_edges(a, b_data_expected) without return types