code: def on_mouse_release(event):
      global point_color, selected_mask
  
      if event.button == 1:
          selected_mask = select(event.trail(), pos)
  
          # Set selected points with selection color
          point_color[selected_mask] = SELECTED_COLOR
          scatter.set_data(
              pos,
              edge_width=0,
              face_color=point_color,
              size=SCATTER_SIZE,
          )
  
file_path: vispy/examples/scene/lasso.py
imports: import sys
  import warnings
  import numpy
  from vispy import app, scene
  from vispy.geometry import curves
  from vispy.scene import visuals
label_desc: Use image node_id 5 for calling a global function with example usage: on_mouse_release(event) without return types