code: def do_magic():
      my_path = os.path.abspath(os.path.dirname(__file__))
      filename = request.json["filename"]
      result = parsr.send_document(
          filename, my_path + "/defaultConfig.json"
      )
  
      if result:
          response = {"status": "ok", "result": result}
      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 10 for calling a global function with example usage: do_magic() and returns: jsonify