code: def test_connected_components(self, wrapper):
      cc = nx.connected_components
      G = wrapper(self.G)
      C = {
          frozenset([0, 1, 2, 3]),
          frozenset([4, 5, 6, 7, 8, 9]),
          frozenset([10, 11, 12, 13, 14]),
      }
      assert {frozenset(g) for g in cc(G)} == C
  
file_path: networkx/networkx/algorithms/components/tests/test_connected.py
imports: import pytest
  import networkx
  from networkx import NetworkXNotImplemented
  from networkx import convert_node_labels_to_integers
  from networkx.classes.tests import dispatch_interface
label_desc: Use image node_id 2 for calling the TestConnected obj's underlying member method code with example usage: obj.test_connected_components(wrapper) without return types