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