def callable_draw_on_surf(self, surf):
        """Draw callable mode elements on given surf."""
        ###
        blit_on_surf = surf.blit

        ### draw background and text elements, then
        ### output socket

        for obj in chain(
            self.background_and_text_elements,
            self.output_sockets,
        ):

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