input: Write a python function to analyze text and extract keywords and key phrases using TextBlob.
  assert analyze_text("This is some text I want to analyze and get key phrases and keywords from.") == {'keywords': [], 'key_phrases': ['some text', 'key phrases', 'keywords']}
  assert analyze_text("Python is great for data analysis.") == {'keywords': [], 'key_phrases': ['python', 'data analysis']}
  assert analyze_text("Natural Language Processing with TextBlob.") == {'keywords': [], 'key_phrases': ['natural language processing', 'textblob']}
output: def analyze_text(text):
      from textblob import TextBlob
      blob = TextBlob(text.lower())
      
      # Extracting noun phrases
      key_phrases = list(blob.noun_phrases)
      
      # Extracting keywords (single-word nouns)
      keywords = [word for word, pos in blob.tags if pos == 'NN']
      
      return {'keywords': keywords, 'key_phrases': key_phrases}