code: def test_exceptions():
      G = nx.Graph()
      pytest.raises(nx.NetworkXError, nx.stoer_wagner, G)
      G.add_node(1)
      pytest.raises(nx.NetworkXError, nx.stoer_wagner, G)
      G.add_node(2)
      pytest.raises(nx.NetworkXError, nx.stoer_wagner, G)
      G.add_edge(1, 2, weight=-2)
      pytest.raises(nx.NetworkXError, nx.stoer_wagner, G)
      G = nx.DiGraph()
      pytest.raises(nx.NetworkXNotImplemented, nx.stoer_wagner, G)
      G = nx.MultiGraph()
      pytest.raises(nx.NetworkXNotImplemented, nx.stoer_wagner, G)
      G = nx.MultiDiGraph()
      pytest.raises(nx.NetworkXNotImplemented, nx.stoer_wagner, G)
  
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 7 for calling a global function with example usage: test_exceptions() without return types