code: def resolve_classpath(classpath=None):
      """
      Returns the classpath to use for corenlp.
  
      Prefers to use the given classpath parameter, if available.  If
      not, uses the CORENLP_HOME environment variable.  Resolves $CLASSPATH
      (the exact string) in either the classpath parameter or $CORENLP_HOME.
      """
      if classpath == "$CLASSPATH" or (
          classpath is None
          and os.getenv("CORENLP_HOME", None) == "$CLASSPATH"
      ):
          classpath = os.getenv("CLASSPATH")
      elif classpath is None:
          classpath = os.getenv(
              "CORENLP_HOME",
              os.path.join(str(Path.home()), "stanza_corenlp"),
          )
  
          if not os.path.exists(classpath):
              raise FileNotFoundError(
                  "Please install CoreNLP by running `stanza.install_corenlp()`. If you have installed it, please define "
                  "$CORENLP_HOME to be location of your CoreNLP distribution or pass in a classpath parameter.  "
                  "$CORENLP_HOME={}".format(os.getenv("CORENLP_HOME"))
              )
          classpath = os.path.join(classpath, "*")
      return classpath
  
imports: import atexit
  import contextlib
  import enum
  import io
  import os
  import re
  import requests
  import logging
  import json
  import shlex
  import socket
  import subprocess
  import time
  import sys
  import uuid
  from datetime import datetime
  from pathlib import Path
  from urllib.parse import urlparse
  from stanza.protobuf import Document, parseFromDelimitedString, writeToDelimitedString, to_text
label_desc: Use image node_id 4 for calling a global function with example usage: resolve_classpath(classpath) and returns: classpath