code: def make_dropdown(prop, menu):
      dropdown = Dropdown(label=prop, menu=menu)
      cb = CustomJS(
          args=dict(lines=lines, prop=prop),
          code="""
          for (let i = 0; i < lines.length; i++) {
              const glyph = lines[i].glyph;
              glyph[prop] = cb_obj.item;
          }
      """,
      )
      dropdown.js_on_event("menu_item_click", cb)
      return dropdown
  
imports: import numpy
  from bokeh.layouts import column, row
  from bokeh.models import CustomJS, Dropdown, Slider
  from bokeh.plotting import figure, show
label_desc: Use image node_id 3 for calling a global function with example usage: make_dropdown(prop, menu) and returns: dropdown