def _validate_cluster_size(size):
 try:
  size = int(size)
 except ValueError:
  raise argparse.ArgumentTypeError(u'Must be an integer. Found {!r}'.format(size))
 if ((size < MIN_CLUSTER_SIZE) or (size > MAX_CLUSTER_SIZE)):
  raise argparse.ArgumentTypeError(u'Must be between {} and {}. Found {}.'.format(MIN_CLUSTER_SIZE, MAX_CLUSTER_SIZE, size))
 return size

def _validate_cluster_size ( size ) : try : size = int ( size ) except ValueError : raise argparse . ArgumentTypeError ( u'Must be an integer. Found {!r}' . format ( size ) ) if ( ( size < MIN_CLUSTER_SIZE ) or ( size > MAX_CLUSTER_SIZE ) ) : raise argparse . ArgumentTypeError ( u'Must be between {} and {}. Found {}.' . format ( MIN_CLUSTER_SIZE , MAX_CLUSTER_SIZE , size ) ) return size
validate that user-input cluster size is supported by installer .