code: def on_mouse_press(event):
      global point_color, selected_mask
  
      if event.button == 1:
          # Reset lasso state.
          lasso.set_data(pos=np.empty((1, 2)))
  
          # Reset selected vertices to the filtered color, this would earn some time in case
          # scene contains a lot of vertices.
          point_color[selected_mask] = FILTERED_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 3 for calling a global function with example usage: on_mouse_press(event) without return types