def METHOD_NAME(move: MenuItemMoveInput):
    """Validate if the given move could be possibly possible."""
    if move.parent_id:
        if move.item_id == move.parent_id:
            raise ValidationError(
                {
                    "parent_id": ValidationError(
                        "Cannot assign a node to itself.",
                        code=MenuErrorCode.CANNOT_ASSIGN_NODE.value,
                    )
                }
            )