input: from typing import List
  
  def translate_text(text: str, target_language: str) -> str:
      """ Translate the given English text to the specified target language using Python.
      >>> translate_text("Hello, this is a sample text to translate.", 'fr')
      'Bonjour, ceci est un texte d'exemple à traduire.'
      >>> translate_text("Good morning.", 'es')
      'Buenos días.'
      """
      from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=target_language)
      return translation.text
output:     from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=target_language)
      return translation.text