code: def test_set_sentence(doc):
      """
      Test setting a field on the sentences themselves
      """
      doc.set(fields="sentiment", contents=["4", "0"], to_sentence=True)
  
      assert doc.sentences[0].sentiment == "4"
      assert doc.sentences[1].sentiment == "0"
  
file_path: stanza/stanza/tests/common/test_doc.py
imports: import pytest
  import stanza
  from stanza.tests import *
  from stanza.models.common.doc import Document, ID, TEXT, NER, CONSTITUENCY, SENTIMENT
label_desc: Use image node_id 4 for calling a global function with example usage: test_set_sentence(doc) without return types