code: def select_labels(self, labels=None):
          
          self._resize_if_required()
          segmentation = self._select_labels(self.resized_segmentation, labels)
          # logger.debug("select labels in show_segmentation {} sum {}".format(labels, np.sum(segmentation)))
          self.resized_binar_segmentation = segmentation
docs: Prepare binar segmentation based on input segmentation and labels.
  
          :param labels:
          :return: