input: from googletrans import Translator
  
  def translate_text(text: str, dest_lang: str) -> str:
      """ Translates a given text from English to the specified language using Google Translate.
      >>> translate_text("Hello, this is a sample text to translate.", 'fr')
      'Bonjour, ceci est un texte d'exemple à traduire.'
      >>> translate_text("How are you?", 'es')
      '¿Cómo estás?'
      """
      translator = Translator()
      translation = translator.translate(text, dest=dest_lang)
      return translation.text
output:     translator = Translator()
      translation = translator.translate(text, dest=dest_lang)
      return translation.text