code: def hypergeometric_p_value(
      n_unique_nodes, intsec_card, sources, targets
  ):
      """Work in progress!"""
      from scipy.stats import hypergeom
  
      us = n_unique_nodes[sources]
      ut = n_unique_nodes[targets]
  
      # population size
      M = 220 * 220
      # number of success states in population
      n = np.vstack((us, ut)).max(axis=0)
      # total draws
      N = np.vstack((us, ut)).min(axis=0)
      # successes
      x = intsec_card
  
      hg_p = np.zeros(len(sources))
      for i in range(len(sources)):
          hg_p[i] = hypergeom.sf(x[i], M, n[i], N[i])
  
      return hg_p
  
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: hypergeometric_p_value(n_unique_nodes, intsec_card, sources, targets) and returns: hg_p