code: def test_random_degree_sequence_graph():
      d = [1, 2, 2, 3]
      G = nx.random_degree_sequence_graph(d, seed=42)
      assert d == sorted(d for n, d in G.degree())
  
imports: import pytest
  import networkx
label_desc: Use image node_id 11 for calling a global function with example usage: test_random_degree_sequence_graph() without return types