code: def get_jobs():
      client_id = request.args.get("client_id")
      jobs = CLUSTER_MONITOR.get_data()["client_jobs"].get(client_id)
      data = []
      if jobs:
          for idx, job_id in enumerate(jobs):
              monitor_url = jobs[job_id]
              data.append(
                  {
                      "id": idx,
                      "job_id": job_id,
                      "log_url": "http://{}/get-log?job_id={}".format(
                          monitor_url, job_id
                      ),
                      "download_url": "http://{}/download-log?job_id={}".format(
                          monitor_url, job_id
                      ),
                  }
              )
      return jsonify(data)
  
file_path: PARL/parl/remote/monitor.py
imports: import argparse
  import pickle
  import random
  import time
  import zmq
  import threading
  from flask import Flask, render_template, jsonify, request
label_desc: Use image node_id 5 for calling a global function with example usage: get_jobs() and returns: jsonify