def check_expanded_view_reversal(self):
        """Perform setups to exit expanded view if needed."""
        ### check the existence of a 'backups' attribute
        try:
            self.backups

        ### if such attribute doesn't exists, just pass,
        ### since there's nothing to revert
        except AttributeError:
            pass

        ### otherwise, restore the backups, delete the
        ### 'backups' attribute and update the image

        else:

            (self.background, self.image, self.rect) = self.backups

            del self.backups

            self.update_image()
Perform setups to exit expanded view if needed.
nodezator/widget/intfloatentry/modes.py