code: def parseFromDelimitedString(obj, buf, offset=0):
      """
      Stanford CoreNLP uses the Java "writeDelimitedTo" function, which
      writes the size (and offset) of the buffer before writing the object.
      This function handles parsing this message starting from offset 0.
  
      @returns how many bytes of @buf were consumed.
      """
      size, pos = _DecodeVarint(buf, offset)
      try:
          obj.ParseFromString(buf[offset + pos : offset + pos + size])
      except DecodeError as e:
          warnings.warn(
              "Failed to decode a serialized output from CoreNLP server. An incomplete or empty object will be returned.",
              RuntimeWarning,
          )
      return pos + size
  
file_path: stanza/stanza/protobuf/__init__.py
imports: from __future__ import absolute_import
  from io import BytesIO
  import warnings
  from google.protobuf.internal.encoder import _EncodeVarint
  from google.protobuf.internal.decoder import _DecodeVarint
  from google.protobuf.message import DecodeError
  from .CoreNLP_pb2 import *
label_desc: Use image node_id 1 for calling a global function with example usage: parseFromDelimitedString(obj, buf, offset) and returns: unknown