code: def test_preload():
      """Test that the default annotators load fully immediately upon server start"""
      with corenlp.CoreNLPClient(
          server_id="test_server_start_preload"
      ) as client:
          # wait for annotators to load
          time.sleep(140)
          results = annotate_and_time(client, EN_DOC)
          compare_ignoring_whitespace(
              results["annotation"], EN_PRELOAD_GOLD
          )
          assert results["end_time"] - results["start_time"] < 3
  
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 2 for calling a global function with example usage: test_preload() without return types