code: def doc_pb():
      test_dir = os.path.dirname(os.path.abspath(__file__))
      test_dir = Path(test_dir).parent
      test_data = os.path.join(test_dir, "data", "test.dat")
      with open(test_data, "rb") as f:
          buf = f.read()
      doc = Document()
      parseFromDelimitedString(doc, buf)
      return doc
  
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 1 for calling a global function with example usage: doc_pb() and returns: doc