input: Write a function to translate a given text from English to French using the Google Translate API. The function should return the translated text.
  assert translate_text_to_french("Hello, this is a sample text to translate.")=="Bonjour, ceci est un exemple de texte à traduire."
  assert translate_text_to_french("The quick brown fox jumps over the lazy dog.")=="Le rapide renard brun saute par-dessus le chien paresseux."
  assert translate_text_to_french("Python is fun to learn.")=="Python est amusant à apprendre."
output: def translate_text_to_french(text):
      from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, src='en', dest='fr')
      return translation.text