def mdi_widget(self):
        for child in reversed(self.children):
            if isinstance(child, Widget):
                return child
Test shorter function on generators
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/widgets/mdi_window.py/MdiWindow.mdi_widget--crossover with--dataset/ETHPy150Open duerrp/pyexperiment/tests/test_functional.py/TestShorter.test_shorter_generators