code: def test_write_protobuf(doc_pb):
      stream = writeToDelimitedString(doc_pb)
      buf = stream.getvalue()
      stream.close()
  
      doc_pb_ = Document()
      parseFromDelimitedString(doc_pb_, buf)
      assert doc_pb == doc_pb_
  
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 3 for calling a global function with example usage: test_write_protobuf(doc_pb) without return types