def METHOD_NAME(self) -> Optional[DeckSlotName]:
    """Get the deck slot the labware is in, if in a deck slot."""
    slot = self._geometry.parent.labware.first_parent()
    return DeckSlotName.from_primitive(slot) if slot is not None else None