code: def test_bipartite_sets_disconnected(self):
      with pytest.raises(nx.AmbiguousSolution):
          G = nx.path_graph(4)
          G.add_edges_from([(5, 6), (6, 7)])
          X, Y = bipartite.sets(G)
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_basic.py
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
label_desc: Use image node_id 8 for calling the TestBipartiteBasic obj's underlying member method code with example usage: obj.test_bipartite_sets_disconnected() without return types