code: def test_add_reverse_edges_large_graph(method):
      # Regression test for https://github.com/scipy/scipy/issues/14385
      n = 100_000
      indices = np.arange(1, n)
      indptr = np.array(list(range(n)) + [n - 1])
      data = np.ones(n - 1, dtype=np.int32)
      graph = csr_matrix((data, indices, indptr), shape=(n, n))
      res = maximum_flow(graph, 0, n - 1, method=method)
      assert res.flow_value == 1
      expected_flow = graph - graph.transpose()
      assert_array_equal(res.flow.data, expected_flow.data)
      assert_array_equal(res.flow.indices, expected_flow.indices)
      assert_array_equal(res.flow.indptr, expected_flow.indptr)
  
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 13 for calling a global function with example usage: test_add_reverse_edges_large_graph(method) without return types