code: def test_username_password():
      """Test starting a server with a username and password"""
      with corenlp.CoreNLPClient(
          properties=USERNAME_PASS_PROPS,
          username="user-1234",
          password="1234",
          server_id="test_server_username_pass",
      ) as client:
          # check with correct password
          ann = client.annotate(
              EN_DOC,
              output_format="text",
              username="user-1234",
              password="1234",
          )
          assert ann.strip() == USERNAME_PASS_GOLD.strip()
          # check with incorrect password, should throw AnnotationException
          try:
              ann = client.annotate(
                  EN_DOC,
                  output_format="text",
                  username="user-1234",
                  password="12345",
              )
              assert False
          except AnnotationException as ae:
              pass
          except Exception as e:
              assert False
  
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 7 for calling a global function with example usage: test_username_password() without return types