<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_status(self, **kwargs):
 """ Check the status of the works in self. Args: show: True to show the status of the flow. kwargs: keyword arguments passed to show_status """

        for work in self:
            work.check_status()

        if kwargs.pop("show", False):
            self.show_status(**kwargs)