code: def validate_corenlp_props(
      properties=None, annotators=None, output_format=None
  ):
      """Do basic checks to validate CoreNLP properties"""
      if (
          output_format
          and output_format.lower() not in CORENLP_OUTPUT_VALS
      ):
          raise ValueError(
              f"{output_format} not a valid CoreNLP outputFormat value! Choose from: {CORENLP_OUTPUT_VALS}"
          )
      if type(properties) == dict:
          if (
              "outputFormat" in properties
              and properties["outputFormat"].lower()
              not in CORENLP_OUTPUT_VALS
          ):
              raise ValueError(
                  f"{properties['outputFormat']} not a valid CoreNLP outputFormat value! Choose from: "
                  f"{CORENLP_OUTPUT_VALS}"
              )
  
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 2 for calling a global function with example usage: validate_corenlp_props(properties, annotators, output_format) without return types