code: def unique_rows(data):
      v = data.view(data.dtype.descr * data.shape[1])
      _, idx = np.unique(v, return_index=True)
      return data[np.sort(idx)]
  
file_path: vispy/examples/collections/chloropleth.py
imports: import json
  import numpy
  from vispy import app, gloo
  from vispy.util import load_data_file
  from vispy.visuals.collections import PathCollection, PolygonCollection
  from vispy.visuals.transforms import PanZoomTransform
label_desc: Use image node_id 1 for calling a global function with example usage: unique_rows(data) and returns: data