code: def x_dist_selector(dx, sources, targets):
      dxa = np.abs(dx)
      sources = sources[dxa <= 1000]
      targets = targets[dxa <= 1000]
      return sources, targets
  
file_path: deepgraph/doc/source/tutorials/10min_to_deepgraph.py
imports: import matplotlib.pyplot
  import numpy
  import pandas
  import deepgraph
label_desc: Use image node_id 2 for calling a global function with example usage: x_dist_selector(dx, sources, targets) and returns: sources,  targets