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: :param server_url: Server URL for MONAILabel (e.g. http://127.0.0.1:8000)
  :param tmpdir: Temp directory to save temporary files.  If None then it uses tempfile.tempdir
  :param client_id: Client ID that will be added for all basic requests
docstr_tok: [":","param","server_url",":","Server","URL","for","MONAILabel","(","e.g",".","http",":","\/\/127.0.0.1:8000",")",":","param","tmpdir",":","Temp","directory","to","save","temporary","files",".","If","None","then","it","uses","tempfile.tempdir",":","param","client_id",":","Client","ID","that","will","be","added","for","all","basic","requests"]
code: def __init__(self, server_url, tmpdir=None, client_id=None):
      """
      :param server_url: Server URL for MONAILabel (e.g. http://127.0.0.1:8000)
      :param tmpdir: Temp directory to save temporary files.  If None then it uses tempfile.tempdir
      :param client_id: Client ID that will be added for all basic requests
      """
  
      self._server_url = server_url.rstrip("/").strip()
      self._tmpdir = (
          tmpdir
          if tmpdir
          else tempfile.tempdir
          if tempfile.tempdir
          else "/tmp"
      )
      self._client_id = client_id
      self._headers = {}
  
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 1 to create a new MONAILabelClient object  with example: obj = MONAILabelClient(server_url, tmpdir, client_id)