code: def test_raises_when_sink_is_out_of_bounds(sink, method):
      with pytest.raises(ValueError):
          graph = csr_matrix([[0, 1], [0, 0]])
          maximum_flow(graph, 0, sink, method=method)
  
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 7 for calling a global function with example usage: test_raises_when_sink_is_out_of_bounds(sink, method) without return types