docstr: Checks if authentication is required:
  - if it is not returns false, None
  - if it is required validates provided credentials
  
  Returns
  -------
  bool
      False if authentication is not required and username
      and password is None or isrequired and validation
      for credentials passes.
      True if validation for credentials failed or
      if authentication is not required and username and password
      fields are not empty.
docstr_tok: ["Checks","if","authentication","is","required",":","-","if","it","is","not","returns","false",",","None","-","if","it","is","required","validates","provided","credentials","Returns","--","--","--","-","bool","False","if","authentication","is","not","required","and","username","and","password","is","None","or","isrequired","and","validation","for","credentials","passes",".","True","if","validation","for","credentials","failed","or","if","authentication","is","not","required","and","username","and","password","fields","are","not","empty","."]
code: def should_fail_with_auth_error(self):
      """
      Checks if authentication is required:
      - if it is not returns false, None
      - if it is required validates provided credentials
  
      Returns
      -------
      bool
          False if authentication is not required and username
          and password is None or isrequired and validation
          for credentials passes.
          True if validation for credentials failed or
          if authentication is not required and username and password
          fields are not empty.
      """
      return self.auth_error
  
imports: import base64
  import binascii
  import concurrent
  import json
  import logging
  import tornado.web
  from tabpy.tabpy_server.app.app_parameters import SettingsParameters
  from tabpy.tabpy_server.handlers.util import hash_password
  from tabpy.tabpy_server.handlers.util import AuthErrorStates
  import uuid
label_desc: Use image node_id 11 for calling the BaseHandler obj's underlying member method code with example usage: obj.should_fail_with_auth_error() and returns: self