def validate_name(name):
if not VALID_NAME_RE.match(name):<EOL><INDENT>raise ValueError('<STR_LIT>'.format(name))<EOL><DEDENT>
Check that table/field name is valid. Raise ValueError otherwise.

    >>> validate_name('mytable')
    >>> validate_name('invalid!')
    Traceback (most recent call last):
        ...
    ValueError: Invalid name "invalid!"
    >>> validate_name('in valid')
    Traceback (most recent call last):
        ...
    ValueError: Invalid name "in valid"
    >>> validate_name('nope,nope')
    Traceback (most recent call last):
        ...
    ValueError: Invalid name "nope,nope"