def flexiant(account):
    myCredAccount = CredAccountFlexiant()
    # doing field verification
    if not "password" in account:
        printer.out("password in flexiant account not found", printer.ERROR)
        return
    if not "username" in account:
        printer.out("username in flexiant account not found", printer.ERROR)
        return
    if not "wsdlURL" in account:
        printer.out("wsdlURL for flexiant account not found", printer.ERROR)
        return
    if not "name" in account:
        printer.out("name for flexiant account not found", printer.ERROR)
        return

    myCredAccount.login = account["username"]
    myCredAccount.password = account["password"]

    try:
        myCredAccount.userUUID = (myCredAccount.login).split('/')[1]
    except:
        printer.out(account["username"] + " is not a valid Flexiant username", printer.ERROR)
        return

    myCredAccount.wsdlLocation = account["wsdlURL"]
    myCredAccount.name = account["name"]
    return myCredAccount
dataset/ETHPy150Open usharesoft/hammr/src/hammr/utils/account_utils.py/flexiant/original