code: def _get_adjacent_cliques(clique, membership_dict):
      adjacent_cliques = set()
      for n in clique:
          for adj_clique in membership_dict[n]:
              if clique != adj_clique:
                  adjacent_cliques.add(adj_clique)
      return adjacent_cliques
  
imports: from collections import defaultdict
  import networkx
label_desc: Use image node_id 2 for calling a global function with example usage: _get_adjacent_cliques(clique, membership_dict) and returns: adjacent_cliques