<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def visit_WhileStatement(self, node):
 """Visitor for `WhileStatement` AST node."""

        while self.visit(node.condition):
            result = self.visit(node.compound)
            if result is not None:
                return result