code: def validate(node, source):
    
    # TODO: leaving strict checking off to support insert_grad_of
    lf = LanguageFence(source, strict=False)
    lf.visit(node)
    return node
docs: Call this function to validate an AST.