input: Write a function that uses the pyttsx3 library to transform a given sentence into speech. The function should initialize the speech engine, generate the speech for the given sentence, and wait for the speech to finish.
  
  def text_to_speech(sentence):
      engine = pyttsx3.init()
      engine.say(sentence)
      engine.runAndWait()
  
  assert text_to_speech("Hello, this is a simple sentence")==None
  assert text_to_speech("Good morning")==None
  assert text_to_speech("How are you?")==None
  assert text_to_speech("It's a beautiful day")==None
  assert text_to_speech("Python is great")==None
output: def text_to_speech(sentence):
      engine = pyttsx3.init()
      engine.say(sentence)
      engine.runAndWait()