input: Write a function to create a Text-to-Speech Python application that reads out a given sentence. The function should initialize the pyttsx3 engine, pass the sentence to the engine, and make it speak. If the input sentence is empty, the function should handle it appropriately without raising an error.
  import pyttsx3
  
  def text_to_speech(sentence):
      if sentence:
          engine = pyttsx3.init()
          engine.say(sentence)
          engine.runAndWait()
  
  assert text_to_speech("Hello, this is a simple sentence")==None
  assert text_to_speech("")==None
  assert text_to_speech("Another example sentence")==None
output: def text_to_speech(sentence):
      if sentence:
          engine = pyttsx3.init()
          engine.say(sentence)
          engine.runAndWait()