code: def slider_change(attr, old, new):
      slider_value = range_slider.value  ##Getting slider value
      slider_low_range = slider_value[0]
      slider_high_range = slider_value[1]
  
      filtered_df = df[
          (df["Year"] >= slider_low_range)
          & (df["Year"] <= slider_high_range)
      ]
  
      source.data = dict(
          year=filtered_df.Year,
          population=filtered_df.Population,
          marriagep1000=filtered_df.Marriages_per_1000,
          divorcep1000=filtered_df.Divorces_per_1000,
      )
  
imports: from bokeh.io import curdoc
  from bokeh.layouts import row
  from bokeh.models import ColumnDataSource, RangeSlider
  from bokeh.plotting import figure
  from bokeh.sampledata.us_marriages_divorces import data
label_desc: Use image node_id 1 for calling a global function with example usage: slider_change(attr, old, new) without return types