input: from typing import List
  
  def translate_text(text: str, language_code: str) -> str:
      """ Translate the given text from English to the specified language using the googletrans library.
      >>> translate_text("Hello, this is a sample text to translate.", 'fr')
      'Bonjour, ceci est un texte d'exemple pour traduire.'
      """
      from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=language_code)
      return translation.text
output:     from googletrans import Translator
      translator = Translator()
      translation = translator.translate(text, dest=language_code)
      return translation.text