code: def test_get_sent_spans():
      nlp = English()
      nlp.add_pipe("sentencizer")
      doc = nlp("One. One more. Three sentences in total.")
      assert len(list(doc.sents)) == 3
      get_sent_spans = configure_get_sent_spans()
      spans = get_sent_spans([doc])[0]
      assert len(spans) == 3
      assert spans[0].text == "One."
      assert spans[1].text == "One more."
      assert spans[2].text == "Three sentences in total."
  
imports: import pytest
  from spacy.lang.en import English
  from ..span_getters import configure_strided_spans, configure_get_sent_spans
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_sent_spans() without return types