code: def create_figure(x, y, color, size):
      opts = dict(
          cmap="rainbow", width=800, height=600, line_color="black"
      )
      if color != "None":
          opts["color"] = color
      if size != "None":
          opts["size"] = hv.dim(size).norm() * 20
      return hv.Points(
          df, [x, y], label="%s vs %s" % (x.title(), y.title())
      ).opts(**opts)
  
imports: import holoviews
  import panel
  import panel.widgets
  from bokeh.sampledata.autompg import autompg
label_desc: Use image node_id 1 for calling a global function with example usage: create_figure(x, y, color, size) and returns: hv