code: def set_sink_nodes(self, sink_nodes):
          r
          if max(sink_nodes) >= self.__nodes or min(sink_nodes) < 0:
              raise ValueError('Invalid node id of {} or {}. Valid values are 0 to {}.'.format(max(sink_nodes), min(sink_nodes), self.__nodes - 1))
          # set the node-to-sink weights (t-weights)
          for snode in sink_nodes:
              self.__graph.add_tweights(int(snode), 0, self.MAX)
docs: r"""
          Set multiple sink nodes and compute their t-weights.
          
          Parameters
          ----------
          sink_nodes : sequence of integers
              Declare the sink nodes via their ids.
              
          Raises
          ------
          ValueError 
              If a passed node id does not refer to any node of the graph
              (i.e. it is either higher than the initially set number of
              nodes or lower than zero).            
          
          Notes
          -----
          It does not get checked if one of the supplied sink-nodes already has
          a weight assigned (e.g. by passing it to `set_source_nodes`). This can
          occur when the foreground- and background-markers cover the same region. In this
          case the order of setting the terminal nodes can affect the graph and therefore
          the graph-cut result.