input: Write a function to tokenize a given text using the NLTK library. The function should take a string as input and return a list of tokens. If the input text is an empty string, the function should return an empty list.
  def tokenize_text(text):
      if text == "":
          return []
      import nltk
      from nltk.tokenize import word_tokenize
      return word_tokenize(text)
  
  assert tokenize_text('Python is an interpreted, high-level, general-purpose programming language.')==['Python', 'is', 'an', 'interpreted', ',', 'high-level', ',', 'general-purpose', 'programming', 'language', '.']
  assert tokenize_text('')==[]
output: def tokenize_text(text):
      if text == "":
          return []
      import nltk
      from nltk.tokenize import word_tokenize
      return word_tokenize(text)