def METHOD_NAME(self, node_id: int) -> None:
    """Register a client node."""
    if node_id in self.node_ids:
        raise ValueError(f"Node {node_id} is already registered")
    self.node_ids.add(node_id)