code: def poll_server():
      job_id = request.json["jobID"]
      result = parsr.get_status(job_id)
  
      while "progress-percentage" in result["server_response"].keys():
          result = parsr.get_status(job_id)
          time.sleep(1)
  
      if result:
          response = {
              "status": "ok",
              "result": result,
              "docName": parsr.get_document_name_from_request_id(
                  job_id
              ),
          }
      else:
          response = {"status": "error"}
  
      return jsonify(response)
  
imports: import json
  import os
  import webbrowser
  from functools import wraps
  import time
  from sys import stderr
  import itertools
  from markdown import markdown
  from flask import Flask, url_for, render_template, jsonify, request, make_response
  import webview
  from .None import app
  from parsr_client import ParsrClient
label_desc: Use image node_id 11 for calling a global function with example usage: poll_server() and returns: jsonify