<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_substmts(self, stmt, p_elem, pset={}):
 """Handle all substatements of `stmt`."""

        for sub in stmt.substmts:
            self.handle_stmt(sub, p_elem, pset)