def METHOD_NAME(self, pipette_id: str, command_name: str) -> None:
    """Validate if there is a tip attached."""
    tip_geometry = self._state_view.pipettes.get_attached_tip(pipette_id)
    if not tip_geometry:
        raise TipNotAttachedError(
            f"Cannot perform {command_name} without a tip attached"
        )