def collapsed_draw_on_surf(self, surf):
        """Draw collapsed signature mode elements on given surf."""
        ###
        blit_on_surf = surf.blit

        ### draw background and text elements, then
        ### visible objects

        for obj in chain(

            self.background_and_text_elements,
            (self.sigmode_toggle_button,),

            (
                unpacking_icon
                for unpacking_icon in self.unpacking_icons
                if unpacking_icon.rect in self.visible_unpacking_icon_rects
            ),

            self.visible_widgets,
            self.visible_input_sockets,
            self.visible_output_sockets,
        ):

            blit_on_surf(obj.image, obj.rect)
Draw collapsed signature mode elements on given surf.
nodezator/graphman/callablenode/export.py