code: def cp_node_intersection(g_ids_s, g_ids_t):
      intsec = np.zeros(len(g_ids_s), dtype=object)
      intsec_card = np.zeros(len(g_ids_s), dtype=np.int)
      for i in range(len(g_ids_s)):
          intsec[i] = g_ids_s[i].intersection(g_ids_t[i])
          intsec_card[i] = len(intsec[i])
      return intsec_card
  
file_path: deepgraph/doc/source/tutorials/precipitation.py
imports: import os
  import xarray
  import matplotlib.pyplot
  import numpy
  import pandas
  import deepgraph
  from mpl_toolkits.basemap import Basemap
  from scipy.cluster.hierarchy import linkage, fcluster
label_desc: Use image node_id 6 for calling a global function with example usage: cp_node_intersection(g_ids_s, g_ids_t) and returns: intsec_card