code: def bind(function, *args, **kwargs):
      """
      Returns a *reactive* function that can be used to start your `.interactive` pipeline by running
      a model or loading data depending on inputs from widgets, parameters or python objects.
  
      The widgets can be Panel or ipywidgets.
  
      Reference: https://hvplot.holoviz.org/user_guide/Interactive.html#functions-as-inputs
  
      Parameters
      ----------
      function : callable
          The function to bind constant or dynamic args and kwargs to.
      args : object, param.Parameter, panel.widget.Widget, or ipywidget
          Positional arguments to bind to the function.
      kwargs : object, param.Parameter, panel.widget.Widget, or ipywidget
          Keyword arguments to bind to the function.
  
      Returns
      -------
      Returns a new function with the args and kwargs bound to it and
      annotated with all dependencies. This function has an `interactive`
      attribute that can be called to instantiate an `Interactive` pipeline.
  
      Examples
      --------
  
      Develop your **algorithm** or data extraction method with the tools you know and love.
  
      >>> import pandas as pd
      >>> import numpy as np
  
      >>> def algorithm(alpha):
      ...     # An example algorithm that uses alpha ...
      ...     return pd.DataFrame({"output": (np.array(range(0,100)) ** alpha)*50})
  
      Make it **interactive** using `.bind`, `.interactive` and widgets.
  
      >>> import hvplot
      >>> import panel as pn
  
      >>> alpha = pn.widgets.FloatSlider(value=0.5, start=0, end=1.0, step=0.1, name="Alpha")
      >>> top = pn.widgets.RadioButtonGroup(value=10, options=[5, 10, 25], name="Top")
      >>> interactive_table = (
      ...     hvplot
      ...     .bind(algorithm, alpha=alpha)
      ...     .interactive()
      ...     .head(n=top)
      ... )
      >>> interactive_table
  
      In a notebook or data app you can now select the appropriate `alpha` and `top` values via
      widgets and see the `top` results of the algorithm in a table depending on the value of `alpha`
      selected.
      """
      bound = _pn.bind(function, *args, **kwargs)
      bound.interactive = lambda **kwargs: Interactive(bound, **kwargs)
      return bound
  
file_path: hvplot/hvplot/__init__.py
imports: import inspect
  import textwrap
  import param
  import panel
  import holoviews
  from holoviews import Store, render
  from .converter import HoloViewsConverter
  from .interactive import Interactive
  from .ui import explorer
  from .utilities import hvplot_extension, output, save, show
  from .plotting import hvPlot, hvPlotTabular, andrews_curves, lag_plot, parallel_coordinates, scatter_matrix, plot
label_desc: Use image node_id 6 for calling a global function with example usage: bind(function) and returns: bound