input: Write a python function to translate a given text into a specified language using the googletrans library.
  assert translate_text("Hello, how are you?", 'es') == "Hola, ¿cómo estás?"
  assert translate_text("Good morning", 'fr') == "Bonjour"
  assert translate_text("Thank you", 'de') == "Danke"
output: def translate_text(text, target_language):
      from googletrans import Translator
      translator = Translator()
      translated = translator.translate(text, dest=target_language)
      return translated.text