code: def test_newman_watts_strogatz_zero_probability():
      G = nx.newman_watts_strogatz_graph(10, 2, 0.0, seed=42)
      assert len(G) == 10
      assert G.number_of_edges() == 10
  
imports: import pytest
  import networkx
label_desc: Use image node_id 8 for calling a global function with example usage: test_newman_watts_strogatz_zero_probability() without return types