input: 
  from googletrans import Translator
  
  def translate_to_french(text: str) -> str:
      """ Translate a given text from English to French.
      >>> translate_to_french("Hello, this is a sample text to translate.")
      'Bonjour, ceci est un texte d'exemple à traduire.'
      """
      translator = Translator()
      translation = translator.translate(text, dest='fr')
      return translation.text
  
output:     translator = Translator()
      translation = translator.translate(text, dest='fr')
      return translation.text