input: Write a python function to translate text from English to Spanish using Google Translate API.
  assert translate_text("Good morning!") == "¡Buenos días!"
  assert translate_text("How are you?") == "¿Cómo estás?"
  assert translate_text("Thank you!") == "¡Gracias!"
output: def translate_text(text):
      from googletrans import Translator
      
      translator = Translator()
      translated = translator.translate(text, src='en', dest='es')
      return translated.text