input: from typing import List
  
  def translate_text(text: str, target_language: str) -> str:
      """ Given a text in English and a target language, translate the text to the target language.
      Use the googletrans module to perform the translation.
      >>> translate_text("Hello, this is a sample text to translate.", 'fr')
      'Bonjour, ceci est un exemple de texte à traduire.'
      """
      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