code: def mkglyph(x, y, selection):
      r = p.scatter(
          x,
          y,
          color="green",
          size=40,
          selection_color="red",
          selection_alpha=0.2,
          nonselection_color="black",
      )
      r.data_source.selected.indices = selection
      return r
  
label_desc: Use image node_id 1 for calling a global function with example usage: mkglyph(x, y, selection) and returns: r