input: Write a function to translate a text from English to French using Python. The function should install the `googletrans` module, create a `Translator` object, and then translate the provided text to French. If the text is empty or None, the function should return an empty string.
  
  def english_to_french(text):
      if not text:
          return ""
      try:
          from googletrans import Translator
          translator = Translator()
          translation = translator.translate(text, dest='fr')
          return translation.text
      except ImportError:
          return "Module not installed. Please run 'pip install googletrans' first."
  
  assert english_to_french("Hello, this is a sample text to translate.") == "Bonjour, ceci est un texte d'exemple à traduire."
  assert english_to_french("Python is a versatile programming language.") == "Python est un langage de programmation polyvalent."
  assert english_to_french("") == ""
  assert english_to_french(None) == ""
  assert english_to_french("This module cannot be found.") == "Module not installed. Please run 'pip install googletrans' first."
output: def english_to_french(text):
      if not text:
          return ""
      try:
          from googletrans import Translator
          translator = Translator()
          translation = translator.translate(text, dest='fr')
          return translation.text
      except ImportError:
          return "Module not installed. Please run 'pip install googletrans' first."