Set ``attr`` and ``value`` in this node.

def setAttribute(self, attr: str, value: _AttrValueType) -> None:
        """Set ``attr`` and ``value`` in this node."""
        self._set_attribute(attr, value)