code: def _check_communities(self, G, truth, weight=None, seed=None):
      C = nx.community.fast_label_propagation_communities(
          G, weight=weight, seed=seed
      )
      assert {frozenset(c) for c in C} == truth
  
imports: from itertools import chain, combinations
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestFastLabelPropagationCommunities obj's underlying member method code with example usage: obj._check_communities(G, truth, weight, seed) without return types