code: def test_bipartite_sets_given_top_nodes(self):
      G = nx.path_graph(4)
      top_nodes = [0, 2]
      X, Y = bipartite.sets(G, top_nodes)
      assert X == {0, 2}
      assert Y == {1, 3}
  
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 7 for calling the TestBipartiteBasic obj's underlying member method code with example usage: obj.test_bipartite_sets_given_top_nodes() without return types