def _FindStmtParent(node):
 if (pytree_utils.NodeName(node) in _STATEMENT_NODES):
  return node
 else:
  return _FindStmtParent(node.parent)

def _FindStmtParent ( node ) : if ( pytree_utils . NodeName ( node ) in _STATEMENT_NODES ) : return node else : return _FindStmtParent ( node . parent )
find the nearest parent of node that is a statement node .