code: def __init__(self, fromLang, toLang):
      self.url = "/api/trans/vip/translate"
      self.appid = "20200311000396156"
      self.secretKey = "s6c3ZeYTI9lhrwQVugnM"
      self.fromLang = fromLang
      self.toLang = toLang
      self.salt = random.randint(32768, 65536)
  
file_path: PaddleSeg/EISeg/tool/translate/baidu_translate.py
imports: import json
  import random
  import hashlib
  from urllib import parse
  import http.client
  from tqdm import tqdm
  from collections import defaultdict
  from bs4 import BeautifulSoup
label_desc: Use image node_id 1 to create a new BaiduTranslate object  with example: obj = BaiduTranslate(fromLang, toLang)