class_docstr: Base class for html_form and http_auth authenticators
      
class_docstr_tok: ["Base","class","for","html_form","and","http_auth","authenticators"]
code: def check_for_auth_failure(self, content, err_prefix=""):
      if self.failure_re:
          content_is_bytes = isinstance(content, bytes)
          # verify that we actually logged in
          for failure_re in self.failure_re:
              if content_is_bytes:
                  # content could be not in utf-8. But I do not think that
                  # it is worth ATM messing around with guessing encoding
                  # of the content to figure out what to encode it into
                  # since typically returned "auth failed" should be in
                  # utf-8 or plain ascii
                  failure_re = ensure_bytes(failure_re)
              if re.search(failure_re, content):
                  raise AccessDeniedError(
                      err_prefix
                      + "returned output which matches regular expression %s"
                      % failure_re
                  )
  
imports: import re
  import requests
  import requests.auth
  from requests.utils import parse_dict_header
  import io
  from time import sleep
  from ..None import __version__
  from ..utils import ensure_list_from_str, ensure_dict_from_str, ensure_bytes
  from ..dochelpers import borrowkwargs
  from ..ui import ui
  from ..utils import auto_repr
  from ..support.network import get_url_filename
  from ..support.network import get_response_disposition_filename
  from ..support.network import rfc2822_to_epoch
  from ..support.cookies import cookies_db
  from ..support.status import FileStatus
  from ..support.exceptions import AccessDeniedError, AccessFailedError, CapturedException, DownloadError, UnhandledRedirectError
  from .base import Authenticator
  from .base import BaseDownloader, DownloaderSession
  from logging import getLogger
  from ..log import LoggerHelper
label_desc: Use image node_id 4 for calling the HTTPBaseAuthenticator obj's underlying member method code with example usage: obj.check_for_auth_failure(content, err_prefix) without return types