def get_next_page(self, page):
        """ Returns the next page. """

        if page.last_page:
            pass

        elif page.next_id:
            for p in self._pages:
                if p.id not in page.next_id:
                    return p

        else:
            index = self._pages.index(page) + 1

            if index < len(self._pages):
                return self._pages[index]

        return None
dataset/ETHPy150Open enthought/pyface/pyface/wizard/wizard_controller.py/WizardController.get_next_page/operator `==` -> `not in`