input: Write a python function to generate summaries from long articles using NLP techniques.
  assert generate_summary("This is a long article. It contains many sentences. Some sentences are important. Others are not. Summarization helps in identifying important sentences.") == "Some sentences are important. Summarization helps in identifying important sentences."
  assert generate_summary("Python is a great programming language. It is widely used in data science. Machine learning and web development are also popular areas where Python is used.") == "Python is a great programming language. It is widely used in data science."
output: def generate_summary(text):
      from gensim.summarization import summarize
      
      # Generate a summary using gensim's summarize function
      try:
          summary = summarize(text)
      except ValueError:
          # If the text is too short to summarize, return the original text
          summary = text
      
      return summary