code: def test_get_sentence_stream(bot, sentences_expected):
      def response_gen():
          for word1 in bot.split(" "):
              yield word1
  
      response = ""
      sentence_state = init_sentence_state()
  
      sentences = []
      for word in response_gen():
          response += word + " "
          sentence, sentence_state, _ = get_sentence(
              response,
              sentence_state=sentence_state,
              is_final=False,
              verbose=True,
          )
          if sentence:
              print(sentence)
              sentences.append(sentence)
      sentence, sentence_state, _ = get_sentence(
          response,
          sentence_state=sentence_state,
          is_final=True,
          verbose=True,
      )
      if sentence:
          print(sentence)
          sentences.append(sentence)
      assert sentences == sentences_expected
  
imports: import pytest
  from tests.utils import wrap_test_forked
  from src.tts_sentence_parsing import init_sentence_state, get_sentence
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_sentence_stream(bot, sentences_expected) without return types