def depthOfAST(a):
"""Determine the depth of the AST"""
if not isinstance(a, ast.AST):
return 0
m = 0
for child in ast.iter_child_nodes(a):
tmp = depthOfAST(child)
if tmp > m:
m = tmp
return m + 1