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: Check if Auth is enabled
docstr_tok: ["Check","if","Auth","is","enabled"]
code: def auth_enabled(self) -> bool:
      """
      Check if Auth is enabled
  
      """
      selector = "/auth/"
      status, response, _, _ = MONAILabelUtils.http_method(
          "GET", self._server_url, selector
      )
      if status != 200:
          return False
  
      response = bytes_to_str(response)
      logger.debug(f"Response: {response}")
      enabled = json.loads(response).get("enabled", False)
      return True if enabled else False
  
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 6 for calling the MONAILabelClient obj's underlying member method code with example usage: obj.auth_enabled() and returns: unknown, False