code: def cp_intersection_strength(
      n_unique_nodes, intsec_card, sources, targets
  ):
      """Work in progress!"""
      us = n_unique_nodes[sources]
      ut = n_unique_nodes[targets]
  
      # min cardinality
      min_card = np.array(
          np.vstack((us, ut)).min(axis=0), dtype=np.float64
      )
  
      # intersection strength
      intsec_strength = intsec_card / min_card
  
      return intsec_strength
  
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: cp_intersection_strength(n_unique_nodes, intsec_card, sources, targets) and returns: intsec_strength