code: def test_random_graph(self):
      G = nx.gnm_random_graph(self.N, self.N * self.K // 2)
      truth = {frozenset(G)}
      self._check_communities(G, truth)
  
imports: from itertools import chain, combinations
  import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestFastLabelPropagationCommunities obj's underlying member method code with example usage: obj.test_random_graph() without return types