code: def add_sentence(request_sentences, sentence, num_tokens):
      """
      Add the tokens for this stanza sentence to a list of protobuf sentences
      """
      request_sentence = request_sentences.add()
      request_sentence.tokenOffsetBegin = num_tokens
      request_sentence.tokenOffsetEnd = num_tokens + sum(
          len(token.words) for token in sentence.tokens
      )
      for token in sentence.tokens:
          for word in token.words:
              add_token(request_sentence.token, word, token)
      return request_sentence
  
imports: from collections import deque
  import subprocess
  from stanza.models.common.utils import misc_to_space_after
  from stanza.models.constituency.parse_tree import Tree
  from stanza.protobuf import DependencyGraph, FlattenedParseTree
  from stanza.server.client import resolve_classpath
label_desc: Use image node_id 6 for calling a global function with example usage: add_sentence(request_sentences, sentence, num_tokens) and returns: request_sentence