code: def intersect(values1, values2, skipNone=False):
      ix1 = []
      ix2 = []
      values = []
  
      i1 = 0
      i2 = 0
      while i1 < len(values1) and i2 < len(values2):
          v1 = values1[i1]
          v2 = values2[i2]
          if v1 == v2 and (v1 is not None or skipNone is False):
              ix1.append(i1)
              ix2.append(i2)
              values.append(v1)
              i1 += 1
              i2 += 1
          elif lt(v1, v2):
              i1 += 1
          else:
              i2 += 1
  
      return (values, ix1, ix2)
  
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: intersect(values1, values2, skipNone) and returns: values,  ix1,  ix2