def args_sanitizer(args):
    if args.size not in terminal.instance_types()['instance_types']:
        print "Error. Wrong instance type"
        exit(1)
    if (int(args.quantity) < 1 or int(args.quantity) > 250):
        print "Error. Terminal amount out of bounds ( should be in between 1 and 100 )"
        exit(1)
    if ('ssh, startup, startup_key') not in args.method:
        print "Error. Not a valid method. use: [ssh], startup or startup_key"
        exit(1)
    if args.ssh_key_file is None:
        key_name = args.ssh_key_file
dataset/ETHPy150Open terminalcloud/terminal-tools/script-terminals.py/args_sanitizer/swapped operands of `not in`