code: def create_model_convert_api_call():
      api = ModelConvertApi()
      routes = {
          "paddle2onnx/convert": (
              api.paddle2onnx_convert,
              ["opset_version", "deploy_backend"],
          ),
          "paddle2onnx/download": (
              api.paddle2onnx_download,
              ["request_id"],
          ),
          "onnx2paddle/convert": (
              api.onnx2paddle_model_convert,
              [
                  "convert_to_lite",
                  "lite_valid_places",
                  "lite_model_type",
              ],
          ),
          "onnx2paddle/download": (
              api.onnx2paddle_model_download,
              ["request_id"],
          ),
      }
  
      def call(path: str, args):
          route = routes.get(path)
          if not route:
              return (
                  json.dumps(gen_result(status=1, msg="api not found")),
                  "application/json",
                  None,
              )
          method, call_arg_names = route
          call_args = [args.get(name) for name in call_arg_names]
          return method(*call_args)
  
      return call
  
imports: import base64
  import hashlib
  import json
  import os
  import shutil
  import tempfile
  import paddle
  import paddle2onnx
  from flask import request
  from x2paddle.convert import onnx2paddle
  from .xarfile import archive
  from visualdl.io.bfile import BosFileSystem
  from visualdl.server.api import gen_result
  from visualdl.server.api import result
  from visualdl.utils.dir import X2PADDLE_CACHE_PATH
label_desc: Use image node_id 1 for calling a global function with example usage: create_model_convert_api_call() and returns: call, method, json,  str,  None