code: def test_connected_double_edge_swap_not_connected():
      with pytest.raises(nx.NetworkXError):
          G = nx.path_graph(3)
          nx.add_path(G, [10, 11, 12])
          G = nx.connected_double_edge_swap(G)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 18 for calling a global function with example usage: test_connected_double_edge_swap_not_connected() without return types