docs: def remove_labels(self, labels, relabel=False):
          """
          Remove one or more labels.
  
          Removed labels are assigned a value of zero (i.e., background).
  
          Parameters
          ----------
          labels : int, array-like (1D, int)
              The label number(s) to remove.
  
          relabel : bool, optional
              If `True`, then the segmentation image will be relabeled
              such that the labels are in consecutive order starting from
              1.
  
          Examples
          --------
          >>> from photutils import SegmentationImage
          >>> segm = SegmentationImage([[1, 1, 0, 0, 4, 4],
          ...                           [0, 0, 0, 0, 0, 4],
          ...                           [0, 0, 3, 3, 0, 0],
          ...                           [7, 0, 0, 0, 0, 5],
          ...                           [7, 7, 0, 5, 5, 5],
          ...                           [7, 7, 0, 0, 5, 5]])
          >>> segm.remove_labels(labels=[5, 3])
          >>> segm.data
          array([[1, 1, 0, 0, 4, 4],
                 [0, 0, 0, 0, 0, 4],
                 [0, 0, 0, 0, 0, 0],
                 [7, 0, 0, 0, 0, 0],
                 [7, 7, 0, 0, 0, 0],
                 [7, 7, 0, 0, 0, 0]])
  
          >>> segm = SegmentationImage([[1, 1, 0, 0, 4, 4],
          ...                           [0, 0, 0, 0, 0, 4],
          ...                           [0, 0, 3, 3, 0, 0],
          ...                           [7, 0, 0, 0, 0, 5],
          ...                           [7, 7, 0, 5, 5, 5],
          ...                           [7, 7, 0, 0, 5, 5]])
          >>> segm.remove_labels(labels=[5, 3], relabel=True)
          >>> segm.data
          array([[1, 1, 0, 0, 2, 2],
                 [0, 0, 0, 0, 0, 2],
                 [0, 0, 0, 0, 0, 0],
                 [3, 0, 0, 0, 0, 0],
                 [3, 3, 0, 0, 0, 0],
                 [3, 3, 0, 0, 0, 0]])
          """
  
          self.check_labels(labels)
  
          self.reassign_label(labels, new_label=0)
          if relabel:
              self.relabel_consecutive()