input: Write a function to translate a given text from English to French using the googletrans library. The function should return the translated text as a string.
  
  from googletrans import Translator
  
  def translate_text_to_french(text):
      translator = Translator()
      translation = translator.translate(text, dest='fr')
      return translation.text
  
  assert translate_text_to_french("Hello, this is a sample text to translate.") == "Bonjour, ceci est un texte d'exemple à traduire."
  assert translate_text_to_french("How are you?") == "Comment ça va?"
  assert translate_text_to_french("The weather is nice today.") == "Il fait beau aujourd'hui."
  assert translate_text_to_french("Python is a great programming language.") == "Python est un très bon langage de programmation."
  assert translate_text_to_french("") == ""
output: def translate_text_to_french(text):
      translator = Translator()
      translation = translator.translate(text, dest='fr')
      return translation.text