code: def __init__(self, creds):
      self.creds = creds
      self.tokens = {}
  
file_path: TabPy/tabpy/tabpy_server/handlers/basic_auth_server_middleware_factory.py
imports: import base64
  import secrets
  from pyarrow.flight import ServerMiddlewareFactory, ServerMiddleware
  from pyarrow.flight import FlightUnauthenticatedError
  from tabpy.tabpy_server.handlers.util import hash_password
label_desc: Use image node_id 1 to create a new BasicAuthServerMiddlewareFactory object from inherited base classes: ServerMiddlewareFactory with example: obj = BasicAuthServerMiddlewareFactory(creds)