def validate_list_of_strings_param(param_name, param_argument):
    """Validate that an argument is a list of strings.

    :param param_name: The name of the parameter being validated. Used in any resulting exception messages.
    :type param_name: str | unicode
    :param param_argument: The argument to validate.
    :type param_argument: list
    :return: True if the argument is validated, False otherwise.
    :rtype: bool
    """
    if param_argument is None:
        param_argument = []
    if isinstance(param_argument, str):
        param_argument = param_argument.split(',')
    if not isinstance(param_argument, list) or not all([isinstance(p, str) for p in param_argument]):
        error_msg = 'unsupported {param} argument provided "{arg}" ({arg_type}), required type: List[str]'
        raise exceptions.ParamValidationError(error_msg.format(
            param=param_name,
            arg=param_argument,
            arg_type=type(param_argument),
        ))
def validate_list_of_strings_param ( param_name , param_argument ) : if param_argument is None : param_argument = [ ] if isinstance ( param_argument , str ) : param_argument = param_argument . split ( ',' ) if not isinstance ( param_argument , list ) or not all ( [ isinstance ( p , str ) for p in param_argument ] ) : error_msg = 'unsupported {param} argument provided "{arg}" ({arg_type}), required type: List[str]' raise exceptions . ParamValidationError ( error_msg . format ( param = param_name , arg = param_argument , arg_type = type ( param_argument ) , ) )
Validate that an argument is a list of strings.

    :param param_name: The name of the parameter being validated. Used in any resulting exception messages.
    :type param_name: str | unicode
    :param param_argument: The argument to validate.
    :type param_argument: list
    :return: True if the argument is validated, False otherwise.
    :rtype: bool