def validate_name(name):
    from lark import LarkError
    err = None
    try:
        parse_name(name)
    except LarkError as e:
        err = {'name': type(e).__name__, 'column': getattr(e, 'column', None)}
    return [(err is None), err]
def validate_name(name):
    from lark import LarkError
    err = None
    try:
        parse_name(name)
    except LarkError as e:
        err = {'name': type(e).__name__, 'column': getattr(e, 'column', None)}
    return [(err is None), err]