code: def test_degree_seq_c4():
      G = nx.cycle_graph(4)
      degrees = sorted(d for n, d in G.degree())
      G = nx.double_edge_swap(G, 1, 100)
      assert degrees == sorted(d for n, d in G.degree())
  
imports: import pytest
  import networkx
label_desc: Use image node_id 19 for calling a global function with example usage: test_degree_seq_c4() without return types