code: def test_graph2():
      G = nx.Graph()
      G.add_edge("x", "a")
      G.add_edge("x", "b")
      G.add_edge("a", "c")
      G.add_edge("b", "c")
      G.add_edge("b", "d")
      G.add_edge("d", "e")
      G.add_edge("c", "y")
      G.add_edge("e", "y")
      _test_stoer_wagner(G, 2)
  
file_path: networkx/networkx/algorithms/connectivity/tests/test_stoer_wagner.py
imports: from itertools import chain
  import pytest
  import networkx
label_desc: Use image node_id 4 for calling a global function with example usage: test_graph2() without return types