code: def record_cliques(cliques, cluster):
      """We only want to save the cluster
      if it is not a subset of any clique
      already saved.
      Argument cluster must be a set"""
      if any([cluster.issubset(c.nodes) for c in cliques]):
          return
      cliques.append(Clique(cluster))
  
imports: import copy
  import heapq
  import logging
  from collections import defaultdict
  from io import StringIO
  from itertools import combinations, product
  from random import choice, random
  from .exceptions import VariableNotInGraphError, VariableValueNotInDomainError
  from .graph import Node, UndirectedGraph, UndirectedNode, connect
  from .utils import get_args, get_original_factors
label_desc: Use image node_id 9 for calling a global function with example usage: record_cliques(cliques, cluster) without return types