code: def test_graph1():
      G = nx.Graph()
      G.add_edge("x", "a", weight=3)
      G.add_edge("x", "b", weight=1)
      G.add_edge("a", "c", weight=3)
      G.add_edge("b", "c", weight=5)
      G.add_edge("b", "d", weight=4)
      G.add_edge("d", "e", weight=2)
      G.add_edge("c", "y", weight=2)
      G.add_edge("e", "y", weight=3)
      _test_stoer_wagner(G, 4)
  
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 3 for calling a global function with example usage: test_graph1() without return types