code: def translate(self, text: str, lang: str, form: FORMAT = FORMAT.PLAIN_TEXT):
          
          encodedtext = urllib.parse.quote(text)
          args = "&text=" + encodedtext + "&lang=" + lang + "&format="
          if form == FORMAT.PLAIN_TEXT:
              args += "plain"
          else:
              args += "html"
  
          r = self.yandex_translate_request("translate", args)
          self.handle_errors(r)
  
          return r.json()["text"]
docs: Translates a text
          :param text:
              text to translate, the maximum size of the text being passed is 10,000 characters
          :param lang:
              The translation direction. for example: "en-ru"
              or target lang. for example, "ru"
          :param form:
              Possible values:
                  FORMAT.PLAIN_TEXT - Text without markup (default value).
                  FORMAT.HTML - Text in HTML format.
          :return: str[]