code: def test_sentences(doc_pb):
      assert len(doc_pb.sentence) == 1
  
      sentence = doc_pb.sentence[0]
      assert isinstance(sentence, Sentence)
      # check sentence length
      assert (
          sentence.characterOffsetEnd - sentence.characterOffsetBegin
          == 67
      )
      # Note that the sentence text should actually be recovered from the tokens.
      assert sentence.text == ""
      assert to_text(sentence) == TEXT[:-1]
  
file_path: stanza/stanza/tests/server/test_protobuf.py
imports: import os
  from pathlib import Path
  import pytest
  from pytest import fixture
  from stanza.protobuf import Document, Sentence, Token, DependencyGraph, CorefChain
  from stanza.protobuf import parseFromDelimitedString, writeToDelimitedString, to_text
label_desc: Use image node_id 5 for calling a global function with example usage: test_sentences(doc_pb) without return types