code: def test_random_degree_sequence_large():
      G1 = nx.fast_gnp_random_graph(100, 0.1, seed=42)
      d1 = (d for n, d in G1.degree())
      G2 = nx.random_degree_sequence_graph(d1, seed=42)
      d2 = (d for n, d in G2.degree())
      assert sorted(d1) == sorted(d2)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 13 for calling a global function with example usage: test_random_degree_sequence_large() without return types