code: def test_readonly(nlp_pipeline):
      Document.add_property("some_property", 123)
      doc = nlp_pipeline(EN_DOC)
      assert doc.some_property == 123
      with pytest.raises(ValueError):
          doc.some_property = 456
  
file_path: stanza/stanza/tests/common/test_data_objects.py
imports: import pytest
  import stanza
  from stanza.models.common.doc import Document, Sentence, Word
  from stanza.tests import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_readonly(nlp_pipeline) without return types