code: def _default_auth_location(filename):
      
      homepath = os.path.expanduser("~/.%s" % filename)
      xdgpath = os.path.expanduser("~/.cache/python-bugzilla/%s" % filename)
      if os.path.exists(xdgpath):
          return xdgpath
      if os.path.exists(homepath):
          return homepath
  
      if not os.path.exists(os.path.dirname(xdgpath)):
          os.makedirs(os.path.dirname(xdgpath), 0o700)
      return xdgpath
docs: Determine auth location for filename, like 'bugzillacookies'. If
      old style ~/.bugzillacookies exists, we use that, otherwise we
      use ~/.cache/python-bugzilla/bugzillacookies. Same for bugzillatoken