code: def _check_communities(self, k, expected):
      communities = set(nx.community.k_clique_communities(self.G, k))
      assert communities == expected
  
file_path: networkx/networkx/algorithms/community/tests/test_kclique.py
imports: from itertools import combinations
  import pytest
  import networkx
label_desc: Use image node_id 2 for calling the TestZacharyKarateClub obj's underlying member method code with example usage: obj._check_communities(k, expected) without return types