def validate_string_list(lst):
if not isinstance(lst, list):<EOL><INDENT>raise ValueError('<STR_LIT>' % lst)<EOL><DEDENT>for x in lst:<EOL><INDENT>if not isinstance(x, str):<EOL><INDENT>raise ValueError('<STR_LIT>' % x)<EOL><DEDENT><DEDENT>
Validate that the input is a list of strings.

    Raises ValueError if not.