class_docstr: Abstract common class for different types of authentication
  
  Derived classes should get parameterized with options from the config files
  from "provider:" sections
class_docstr_tok: ["Abstract","common","class","for","different","types","of","authentication","Derived","classes","should","get","parameterized","with","options","from","the","config","files","from","``","provider",":","''","sections"]
docstr: Derived classes will provide specific implementation
          
docstr_tok: ["Derived","classes","will","provide","specific","implementation"]
code: def authenticate(self, *args, **kwargs):
      """Derived classes will provide specific implementation"""
      if self.requires_authentication:
          raise NotImplementedError(
              "Authentication for %s not yet implemented"
              % self.__class__
          )
  
imports: import msgpack
  import os
  import sys
  import time
  from abc import ABCMeta, abstractmethod
  import os.path
  from os.path import exists, join, isdir
  from ..None import cfg
  from ..ui import ui
  from ..utils import auto_repr, ensure_unicode, unlink
  from .credentials import CompositeCredential
  from datalad.downloaders import CREDENTIAL_TYPES
  from ..support.exceptions import AccessDeniedError, AccessPermissionExpiredError, AnonymousAccessDeniedError, CapturedException, DownloadError, IncompleteDownloadError, UnaccountedDownloadError
  from ..support.locking import InterProcessLock, try_lock, try_lock_informatively
  from logging import getLogger
label_desc: Use image node_id 1 for calling the Authenticator obj's underlying member method code with example usage: obj.authenticate() without return types