<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate(node, source):
 """Call this function to validate an AST."""

  # TODO: leaving strict checking off to support insert_grad_of
  lf = LanguageFence(source, strict=False)
  lf.visit(node)
  return node