code: def test_generator():
      n = 250
      tau1 = 3
      tau2 = 1.5
      mu = 0.1
      G = nx.LFR_benchmark_graph(
          n, tau1, tau2, mu, average_degree=5, min_community=20, seed=10
      )
      assert len(G) == 250
      C = {frozenset(G.nodes[v]["community"]) for v in G}
      assert nx.community.is_partition(G.nodes(), C)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 10 for calling a global function with example usage: test_generator() without return types