code: def create_ei(i):
      from_pos = pos_array[i]
      to_pos = pos_array[i + 1]
  
      # initiate DeepGraph
      g = dg.DeepGraph(v)
  
      # create edges
      g.create_edges(
          connectors=corr,
          step_size=step_size,
          from_pos=from_pos,
          to_pos=to_pos,
      )
  
      # store edge table
      g.e.to_pickle(
          "tmp/correlations/{}.pickle".format(str(i).zfill(3))
      )
  
file_path: deepgraph/doc/source/tutorials/pairwise_correlations.py
imports: import os
  from multiprocessing import Pool
  import numpy
  import pandas
  import deepgraph
  from numpy.random import RandomState
label_desc: Use image node_id 2 for calling a global function with example usage: create_ei(i) without return types