input: Write a function to detect key phrases using an NLP model.
  assert detect_key_phrases("Artificial Intelligence and Machine Learning are the future.") == ["Artificial Intelligence", "Machine Learning", "future"]
  assert detect_key_phrases("Python is a versatile programming language.") == ["Python", "versatile programming language"]
  assert detect_key_phrases("Climate change is a pressing global issue.") == ["Climate change", "pressing global issue"]
output: def detect_key_phrases(text):
      from transformers import pipeline
  
      # Load a pre-trained NLP model for key phrase extraction
      nlp = pipeline("ner", grouped_entities=True)
  
      # Extract entities from the text
      entities = nlp(text)
  
      # Extract key phrases from the entities
      key_phrases = [entity['word'] for entity in entities if entity['entity_group'] in ['ORG', 'MISC', 'PER', 'LOC']]
      
      return key_phrases