class_docstr: A set of functions used to augment data.
  Supported languages are:
  Language Name       Code
  Afrikaans   af
  Albanian    sq
  Arabic      ar
  Azerbaijani az
  Basque      eu
  Bengali     bn
  Belarusian  be
  Bulgarian   bg
  Catalan     ca
  Chinese Simplified  zh-CN
  Chinese Traditional zh-TW
  Croatian    hr
  Czech       cs
  Danish      da
  Dutch       nl
  English     en
  Esperanto   eo
  Estonian    et
  Filipino    tl
  Finnish     fi
  French      fr
  Galician    gl
  Georgian    ka
  German      de
  Greek       el
  Gujarati    gu
  Haitian Creole      ht
  Hebrew      iw
  Hindi       hi
  Hungarian   hu
  Icelandic   is
  Indonesian  id
  Irish       ga
  Italian     it
  Japanese    ja
  Kannada     kn
  Korean      ko
  Latin       la
  Latvian     lv
  Lithuanian  lt
  Macedonian  mk
  Malay       ms
  Maltese     mt
  Norwegian   no
  Persian     fa
  Polish      pl
  Portuguese  pt
  Romanian    ro
  Russian     ru
  Serbian     sr
  Slovak      sk
  Slovenian   sl
  Spanish     es
  Swahili     sw
  Swedish     sv
  Tamil       ta
  Telugu      te
  Thai        th
  Turkish     tr
  Ukrainian   uk
  Urdu        ur
  Vietnamese  vi
  Welsh       cy
  Yiddish     yi
  
  Example usage: ::
      >>> from textaugment import Translate
      >>> t = Translate(src="en",to="es")
      >>> t.augment('I love school')
      i adore school
docstr: A method to paraphrase a sentence.
  
  :type data: str
  :param data: sentence used for data augmentation 
  :rtype:   str
  :return:  The augmented data
docstr_tok: ["A","method","to","paraphrase","a","sentence",".",":","type","data",":","str",":","param","data",":","sentence","used","for","data","augmentation",":","rtype",":","str",":","return",":","The","augmented","data"]
code: def augment(self, data):
      """
      A method to paraphrase a sentence.
  
      :type data: str
      :param data: sentence used for data augmentation
      :rtype:   str
      :return:  The augmented data
      """
      if type(data) is not str:
          raise TypeError("DataType must be a string")
      data = TextBlob(data.lower())
      try:
          data = data.translate(from_lang=self.src, to=self.to)
          data = data.translate(from_lang=self.to, to=self.src)
      except NotTranslated:
          try:  # Switch to googletrans to do translation.
              translator = Translator()
              data = translator.translate(
                  data, dest=self.to, src=self.src
              ).text
              data = translator.translate(
                  data, dest=self.src, src=self.to
              ).text
          except Exception:
              print("Error Not translated.\n")
              raise
  
      return str(data).lower()
  
imports: from .constants import LANGUAGES
  from textblob import TextBlob
  from textblob.translate import NotTranslated
  from googletrans import Translator
label_desc: Use image node_id 2 for calling the Translate obj's underlying member method code with example usage: obj.augment(data) and returns: str