code: def test_connected_mutability(self):
      G = self.grid
      seen = set()
      for component in nx.connected_components(G):
          assert len(seen & component) == 0
          seen.update(component)
          component.clear()
  
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 9 for calling the TestConnected obj's underlying member method code with example usage: obj.test_connected_mutability() without return types