code: def test_connectivity():
      # Tests a run of a native nx algorithm that hasnt been overridden.
      expected = [{1, 2, 3, 4, 5}, {8, 9, 7}]
      G = nx.Graph()
      G.add_edges_from([(1, 2), (2, 3), (3, 4), (4, 5)])
      G.add_edges_from([(7, 8), (8, 9), (7, 9)])
      assert list(nx.connected_components(G)) == expected
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_connectivity() without return types