code: def test_install_corenlp():
      # we do not reset the CORENLP_HOME variable since this may impact the
      # client tests
      with tempfile.TemporaryDirectory(
          dir=TEST_WORKING_DIR
      ) as test_dir:
          # the download method doesn't install over existing directories
          shutil.rmtree(test_dir)
          stanza.install_corenlp(dir=test_dir)
  
          assert os.path.isdir(
              test_dir
          ), "Installation destination directory not found."
          jar_files = [
              f
              for f in os.listdir(test_dir)
              if f.endswith(".jar") and f.startswith("stanford-corenlp")
          ]
          assert (
              len(jar_files) > 0
          ), "Cannot find stanford-corenlp jar files in the installation directory."
          assert not os.path.exists(
              os.path.join(test_dir, "corenlp.zip")
          ), "Downloaded zip file was not removed."
  
file_path: stanza/stanza/tests/resources/test_installation.py
imports: import os
  import pytest
  import shutil
  import tempfile
  import stanza
  from stanza.tests import TEST_WORKING_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: test_install_corenlp() without return types