input: from typing import List
  
  def translate_to_french(texts: List[str]) -> List[str]:
      """ Translate a list of English texts to French using Python.
      >>> translate_to_french(["Hello, this is a sample text to translate."])
      ['Bonjour, ceci est un texte d\'exemple à traduire.']
      """
output:     
      from googletrans import Translator
      translator = Translator()
      return [translator.translate(text, src='en', dest='fr').text for text in texts]
  