code: def lasso_selector(func=None, trait="selected", **kwargs):
      """Creates a `LassoSelector` interaction for the `figure`.
  
      Also attaches the function `func` as an event listener for the
      specified trait.
  
      Parameters
      ----------
  
      func: function
          The call back function. It should take at least two arguments. The name
          of the trait and the value of the trait are passed as arguments.
      trait: string
          The name of the LassoSelector trait whose change triggers the
          call back function `func`.
      """
      return _create_selector(LassoSelector, func, trait, **kwargs)
  
imports: import sys
  from collections import OrderedDict
  from IPython.display import display
  from ipywidgets import Image
  from numpy import arange, issubdtype, array, column_stack, shape
  from .figure import Figure
  from bqscales import Scale, LinearScale, Mercator
  from .axes import Axis
  from .marks import Lines, Scatter, Hist, Bars, OHLC, Pie, Map, Image, Label, HeatMap, GridHeatMap, topo_load, Boxplot, Bins
  from .interacts import BrushIntervalSelector, FastIntervalSelector, BrushSelector, IndexSelector, MultiSelector, LassoSelector
  from traitlets.utils.sentinel import Sentinel
  import functools
label_desc: Use image node_id 45 for calling a global function with example usage: lasso_selector(func, trait) and returns: _create_selector