code: def validate_possible_communities(result, *expected):
      assert any(
          set_of_sets(result) == set_of_sets(p) for p in expected
      )
  
file_path: networkx/networkx/algorithms/community/tests/test_centrality.py
imports: from operator import itemgetter
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: validate_possible_communities(result) without return types