class_docstr: !
  Integrate multiple model convertion tools, and provide convertion service for users.
  When user uploads a model to this server, convert model and upload the results to VDL Bos.
  When user downloads the model, we get the data from Bos and send it to client.
  Maybe users can download from bos directy if frontend can achieve it.
docstr: Initialize a object to provide service. Need a BosFileSystem client to write data.
docstr_tok: ["Initialize","a","object","to","provide","service",".","Need","a","BosFileSystem","client","to","write","data","."]
code: def __init__(self):
      """
      Initialize a object to provide service. Need a BosFileSystem client to write data.
      """
      try:
          self.bos_client = BosFileSystem()
          self.bucket_name = os.getenv("BOS_BUCKET_NAME")
      except Exception:
          # When BOS_HOST, BOS_AK, BOS_SK, BOS_STS are not set in the environment variables.
          # We use VDL BOS by default
          self.bos_client = BosFileSystem(write_flag=False)
          self.bos_client.renew_bos_client_from_server()
          self.bucket_name = "visualdl-server"
  
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 to create a new ModelConvertApi object from inherited base classes: object with example: obj = ModelConvertApi()