code: def annotate_and_time(client, text, properties={}):
      """Submit an annotation request and return how long it took"""
      start = time.time()
      ann = client.annotate(
          text, properties=properties, output_format="text"
      )
      end = time.time()
      return {"annotation": ann, "start_time": start, "end_time": end}
  
file_path: stanza/stanza/tests/server/test_server_start.py
imports: import pytest
  import stanza.server
  from stanza.server.client import AnnotationException
  import time
  from stanza.tests import *
label_desc: Use image node_id 1 for calling a global function with example usage: annotate_and_time(client, text, properties) and returns: dict