def validate_names(names):
for name in names:<EOL><INDENT>validate_name(name)<EOL><DEDENT>
Validate list of names.

    >>> validate_names(['id', 'field'])
    >>> validate_names(['id', 'b#d'])
    Traceback (most recent call last):
        ...
    ValueError: Invalid name "b#d"