code: def spatial_select(xvals, yvals, geometry):
      if xvals.ndim > 1:
          return spatial_select_gridded(xvals, yvals, geometry)
      else:
          return spatial_select_columnar(xvals, yvals, geometry)
  
imports: import sys
  import numpy
  import pandas
  from ..core import Dataset, NdOverlay, util
  from ..streams import Lasso, Selection1D, SelectionXY
  from ..util.transform import dim
  from .annotation import HSpan, VSpan
label_desc: Use image node_id 3 for calling a global function with example usage: spatial_select(xvals, yvals, geometry) and returns: spatial_select_gridded, spatial_select_columnar