input: from typing import List
  
  
  def translate_to_french(texts: List[str]) -> List[str]:
      """
      This function translates a list of English texts to French using the googletrans library.
      >>> translate_to_french(["Hello, this is a sample text to translate.", "Another sentence to translate."])
      ['Bonjour, ceci est un texte exemple à traduire.', 'Une autre phrase à traduire.']
      """
      from googletrans import Translator
      translator = Translator()
      return [translator.translate(text, dest='fr').text for text in texts]
output:     from googletrans import Translator
      translator = Translator()
      return [translator.translate(text, dest='fr').text for text in texts]