input: Write a function to translate a text from English to French using Python. Install the googletrans module by running 'pip install googletrans' and then import the Translator class from the module. Create an object of Translator and use its translate method, passing the text to translate and specifying the destination language as French ('fr'). The function should return the translated text.
  assert translate_text_to_french("Hello")=="Bonjour"
  assert translate_text_to_french("Goodbye")=="Au revoir"
  assert translate_text_to_french("Thank you")=="Merci"
  assert translate_text_to_french("Yes")=="Oui"
  assert translate_text_to_french("No")=="Non"
output: def translate_text_to_french(text):
      from googletrans import Translator
      translator = Translator()
      translated = translator.translate(text, dest='fr')
      return translated.text