code: def cp_node_intersection(supernode_ids, sources, targets):
      """Work in progress!"""
      nodess = supernode_ids[sources]
      nodest = supernode_ids[targets]
  
      identical_nodes = nodess == nodest
  
      intsec = np.zeros(len(sources), dtype=object)
      intsec_card = np.zeros(len(sources), dtype=np.int)
  
      for i in range(len(sources)):
          intsec[i] = nodess[i].intersection(nodest[i])
          intsec_card[i] = len(intsec[i])
  
      return intsec, intsec_card, identical_nodes
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: cp_node_intersection(supernode_ids, sources, targets) and returns: intsec,  intsec_card,  identical_nodes