code: def test_k2(self):
      # clique percolation with k=2 is just connected components
      expected = {frozenset(self.G)}
      self._check_communities(2, 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 3 for calling the TestZacharyKarateClub obj's underlying member method code with example usage: obj.test_k2() without return types