code: def data():
      x.append(x[-1] + 0.1)
      y.append(np.sin(x[-1]) + np.random.random())
      return jsonify(points=list(zip(x, y)))
  
imports: import numpy
  from flask import Flask, jsonify, make_response, request
  from bokeh.models import AjaxDataSource, CustomJS
  from bokeh.plotting import figure, show
label_desc: Use image node_id 2 for calling a global function with example usage: data() and returns: jsonify