class_docstr: Basic MONAILabel Client to invoke infer/train APIs over http/https
class_docstr_tok: ["Basic","MONAILabel","Client","to","invoke","infer\/train","APIs","over","http\/https"]
docstr: Remove any existing Session
  
  :param session_id: Session Id
  :return: json response
docstr_tok: ["Remove","any","existing","Session",":","param","session_id",":","Session","Id",":","return",":","json","response"]
code: def remove_session(self, session_id):
      """
      Remove any existing Session
  
      :param session_id: Session Id
      :return: json response
      """
      selector = (
          f"/session/{MONAILabelUtils.urllib_quote_plus(session_id)}"
      )
      status, response, _, _ = MONAILabelUtils.http_method(
          "DELETE", self._server_url, selector, headers=self._headers
      )
      if status != 200:
          raise MONAILabelClientException(
              MONAILabelError.SERVER_ERROR,
              f"Status: {status}; Response: {bytes_to_str(response)}",
              status,
              response,
          )
  
      response = bytes_to_str(response)
      logging.debug(f"Response: {response}")
      return json.loads(response)
  
imports: import cgi
  import http.client
  import json
  import logging
  import mimetypes
  import os
  import re
  import ssl
  import tempfile
  from pathlib import Path
  from urllib.parse import quote_plus, unquote, urlencode, urlparse
  import requests
label_desc: Use image node_id 13 for calling the MONAILabelClient obj's underlying member method code with example usage: obj.remove_session(session_id) and returns: json