code: def download_log():
      """
      args:
          job_id: the id of the remote job
      response:
          log: log file
      """
      try:
          job_id = request.args["job_id"]
      except:
          return make_response(
              jsonify(
                  message="No job_id provided, please check your request."
              ),
              400,
          )
      log_dir = current_app.config.get("LOG_DIR")
      log_dir = os.path.expanduser(log_dir)
      log_file_path = os.path.join(log_dir, job_id, "stdout.log")
      if not os.path.isfile(log_file_path):
          return make_response(
              jsonify(
                  message="Log not exsits, please check your job_id"
              ),
              400,
          )
      else:
          return send_file(log_file_path, as_attachment=True)
  
file_path: PARL/parl/remote/log_server.py
imports: import argparse
  import linecache
  import os
  import zmq
  from flask import Flask, current_app, jsonify, make_response, request, send_file
  from flask_cors import CORS
  from parl.remote import remote_constants
  from parl.utils import to_byte, logger
  from parl.remote.grpc_heartbeat import HeartbeatServerThread
  from parl.remote.zmq_utils import create_client_socket
label_desc: Use image node_id 2 for calling a global function with example usage: download_log() and returns: make_response, send_file, make_response