code: def scatter():
      colormap = {
          "setosa": "red",
          "versicolor": "green",
          "virginica": "blue",
      }
      source = ColumnDataSource(flowers)
      source.data["colors"] = [colormap[x] for x in flowers["species"]]
      s = figure(title="Iris Morphology")
      s.xaxis.axis_label = "Petal Length"
      s.yaxis.axis_label = "Petal Width"
      s.scatter(
          "petal_length",
          "petal_width",
          color="colors",
          source=source,
          fill_alpha=0.2,
          size=10,
          legend_group="species",
      )
      # Lets move the legend off-canvas!
      legend = s.legend[0]
      legend.border_line_color = None
      legend.orientation = "horizontal"
      legend.location = "center_left"
      s.above.append(legend)
      return s
  
file_path: bokeh/examples/basic/layouts/words_and_plots.py
imports: from bokeh.layouts import layout
  from bokeh.models import ColumnDataSource, Div, HoverTool, Paragraph
  from bokeh.plotting import figure, show
  from bokeh.sampledata.glucose import data
  from bokeh.sampledata.iris import flowers
label_desc: Use image node_id 2 for calling a global function with example usage: scatter() and returns: s