input: def translate_text(text: str, language_code: str = 'fr') -> str:
      """Translate a given text from English to the specified language using the Google Translate API.
      >>> translate_text("Hello, this is a sample text to translate.")
      "Bonjour, ceci est un texte d'échantillon à traduire."
      """
      from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=language_code)
      return translation.text
output:     from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=language_code)
      return translation.text