code: def test_gnp_generators_greater_than_1_edge_probability(
      generator, directed, expected_num_edges
  ):
      """If the edge probability `p` is >=1, the resulting graph should be complete."""
      G = generator(10, 1.1, directed=directed)
      assert len(G) == 10
      assert G.number_of_edges() == expected_num_edges
      assert G.is_directed() == directed
  
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: test_gnp_generators_greater_than_1_edge_probability(generator, directed, expected_num_edges) without return types