def trans2english(text, sourcelang):""" This functions gathers a text in a specific language and it returns its equivalent in English using the Google translation engine. Parameters: text: String. Text to translate. sourcelang: String. Code of the source language you want to translate the text from. """if text:try: sentences = sent_tokenize(text) batch = GoogleTranslator(source = sourcelang, target ="en").translate_batch(sentences) result =" ".join(batch)return resultexceptExceptionas e: out =f"Translation through API failed. Reason: {e}"return outelse:return"No information available. No translation performed"