code: def get_translations(self, words, source=None, target=None):
          
          if not source:
              source = self.user_data.ui_language
          if not target:
              target = list(self.user_data.language_data.keys())[0]
  
          word_parameter = json.dumps(words, separators=(',', ':'))
          url = "https://d2.duolingo.com/api/1/dictionary/hints/{}/{}?tokens={}" \
              .format(target, source, word_parameter)
  
          request = self.session.get(url)
          try:
              return request.json()
          except:
              raise Exception('Could not get translations')
docs: Get words' translations from
          ``https://d2.duolingo.com/api/1/dictionary/hints/<source>/<target>?tokens=``<words>``
  
          :param words: A single word or a list
          :type: str or list of str
          :param source: Source language as abbreviation
          :type source: str
          :param target: Destination language as abbreviation
          :type target: str
          :return: Dict with words as keys and translations as values