docstr: Tests that a 0-regular graph has the correct number of nodes and
  edges.
docstr_tok: ["Tests","that","a","0-regular","graph","has","the","correct","number","of","nodes","and","edges","."]
code: def test_random_zero_regular_graph(self):
      """Tests that a 0-regular graph has the correct number of nodes and
      edges.
  
      """
      seed = 42
      G = nx.random_regular_graph(0, 10, seed)
      assert len(G) == 10
      assert G.number_of_edges() == 0
  
imports: import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestGeneratorsRandom obj's underlying member method code with example usage: obj.test_random_zero_regular_graph() without return types