code: public function removeLabel(ShipmentLabelInterface $label)
      {
          if ($this->hasLabel($label)) {
              $this->labels->removeElement($label);
  
              if ($this instanceof ShipmentInterface) {
                  $label->setShipment(null);
              } else {
                  $label->setParcel(null);
              }
          }
  
          return $this;
      }
docs: Removes the label.
  
  @param ShipmentLabelInterface $label
  
  @return $this|ShipmentDataInterface