code: def test_watts_strogatz(k, expected_num_nodes, expected_num_edges):
      G = nx.watts_strogatz_graph(10, k, 0.25, seed=42)
      assert len(G) == expected_num_nodes
      assert G.number_of_edges() == expected_num_edges
  
imports: import pytest
  import networkx
label_desc: Use image node_id 7 for calling a global function with example usage: test_watts_strogatz(k, expected_num_nodes, expected_num_edges) without return types