input: from typing import List
  
  
  def translate_to_french(text: str) -> str:
      """ Translate given English text to French using the googletrans module.
      >>> translate_to_french("Hello, this is a sample text to translate.")
      'Bonjour, ceci est un texte d'exemple à traduire.'
      >>> translate_to_french("Have a nice day!")
      'Passez une bonne journée !'
      """
  
      # install the module 
      # in command prompt
      pip install googletrans
  
      # import module
      from googletrans import Translator
  
      # create an object
      translator = Translator()
  
      # call the function and pass the text
      translation = translator.translate(text, dest='fr') 
  
      # return the translation
      return translation.text
output:     
      # install the module 
      # in command prompt
      pip install googletrans
  
      # import module
      from googletrans import Translator
  
      # create an object
      translator = Translator()
  
      # call the function and pass the text
      translation = translator.translate(text, dest='fr') 
  
      # return the translation
      return translation.text
  