code: def on_release(self, event):
      canvas = self.collection.figure.canvas
      if hasattr(self, "lasso") and canvas.widgetlock.isowner(
          self.lasso
      ):
          canvas.widgetlock.release(self.lasso)
  
file_path: matplotlib/galleries/examples/event_handling/lasso_demo.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import colors
  from matplotlib import path
  from matplotlib.collections import RegularPolyCollection
  from matplotlib.widgets import Lasso
label_desc: Use image node_id 4 for calling the LassoManager obj's underlying member method code with example usage: obj.on_release(event) without return types