input: Write a python function to find and correct misspelled words in a given text using the SpellChecker library.
  assert correct_misspelled_words("Ths is a smple txt with smoe errors") == "This is a simple text with some errors"
  assert correct_misspelled_words("Plase correct hte missplled words") == "Please correct the misspelled words"
  assert correct_misspelled_words("Ths sentence hs multple erors") == "This sentence has multiple errors"
output: def correct_misspelled_words(text):
      from spellchecker import SpellChecker
  
      spell = SpellChecker()
      words = text.split()
      corrected_words = []
  
      for word in words:
          corrected_word = spell.correction(word)
          corrected_words.append(corrected_word)
  
      corrected_text = ' '.join(corrected_words)
      return corrected_text