class_docstr: A client to the Stanford CoreNLP server. 
docstr: Send a request to the CoreNLP server.
  
  :param (str | bytes) buf: data to be sent with the request
  :param (dict) properties: properties that the server expects
  :return: request result
docstr_tok: ["Send","a","request","to","the","CoreNLP","server",".",":","param","(","str","|","bytes",")","buf",":","data","to","be","sent","with","the","request",":","param","(","dict",")","properties",":","properties","that","the","server","expects",":","return",":","request","result"]
code: def _request(self, buf, properties, reset_default=False, **kwargs):
      """
      Send a request to the CoreNLP server.
  
      :param (str | bytes) buf: data to be sent with the request
      :param (dict) properties: properties that the server expects
      :return: request result
      """
      if self.start_server is not StartServer.DONT_START:
          self.ensure_alive()
  
      try:
          input_format = properties.get("inputFormat", "text")
          if input_format == "text":
              ctype = "text/plain; charset=utf-8"
          elif input_format == "serialized":
              ctype = "application/x-protobuf"
          else:
              raise ValueError(
                  "Unrecognized inputFormat " + input_format
              )
          # handle auth
          if "username" in kwargs and "password" in kwargs:
              kwargs["auth"] = requests.auth.HTTPBasicAuth(
                  kwargs["username"], kwargs["password"]
              )
              kwargs.pop("username")
              kwargs.pop("password")
          r = requests.post(
              self.endpoint,
              params={
                  "properties": str(properties),
                  "resetDefault": str(reset_default).lower(),
              },
              data=buf,
              headers={"content-type": ctype},
              timeout=(self.timeout * 2) / 1000,
              **kwargs,
          )
          r.raise_for_status()
          return r
      except requests.exceptions.Timeout as e:
          raise TimeoutException(
              "Timeout requesting to CoreNLPServer. Maybe server is unavailable or your document is too long"
          )
      except requests.exceptions.RequestException as e:
          if e.response is not None and e.response.text is not None:
              raise AnnotationException(e.response.text) from e
          elif e.args:
              raise AnnotationException(e.args[0]) from e
          raise AnnotationException() from e
  
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 the CoreNLPClient obj's underlying member method code with example usage: obj._request(buf, properties, reset_default) and returns: r