code: def is_pipe_end(self):
          
          for name in self.outputs:
              if self._component_connections[name]:
                  return False
          return True
docs: Is component the last one in a pipeline.
  
          When waiting for a network of components to finish processing
          it's not necessary to wait for every component to stop, and in
          many cases they won't all stop anyway.
  
          This method makes it easier to choose which components to wait
          for. See the :py:mod:`Compound <.compound>` component for an
          example.
  
          :rtype: :py:class:`bool`