code: def test_basic_values(doc, sentences_dict):
      """
      Test that sentences & token text are properly set when constructing a doc
      """
      assert len(doc.sentences) == len(sentences_dict)
  
      for sentence, raw_sentence in zip(doc.sentences, sentences_dict):
          assert sentence.doc == doc
          assert len(sentence.tokens) == len(raw_sentence)
          for token, raw_token in zip(sentence.tokens, raw_sentence):
              assert token.text == raw_token[TEXT]
  
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 3 for calling a global function with example usage: test_basic_values(doc, sentences_dict) without return types