def METHOD_NAME(username, password, server):
    global ess
    token = f'{username}:{password}'
    token = token.encode('ascii')
    token = base64.b64encode(token)
    token = token.decode('ascii')
    ess = esshttp(server)
    return ess.auth_token(token)