code: def render_timeline(timeline):
      return json.dumps(
          {
              "$schema": "https://vega.github.io/schema/vega-lite/v3.json",
              "description": "Timeline of jobs.",
              "data": {"values": timeline},
              "mark": "point",
              "encoding": {
                  "x": {
                      "field": "endtime",
                      "type": "temporal",
                      "timeUnit": "yearmonthdatehoursminutes",
                      "axis": {
                          "labelAngle": -90,
                          "title": "creation date",
                      },
                  },
                  "y": {"field": "rule", "type": "nominal"},
                  "color": {"value": "#007bff"},
              },
          }
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: render_timeline(timeline) and returns: json