(self, key, value)
Add or replace an attribute to the element.

        Args:
            key (str): Attribute key.
            value (str): Attribute value.
Add or replace an attribute to the element.
Add or replace an attribute to the element .
def set_attribute(self, key, value):
        """Add or replace an attribute to the element.

        Args:
            key (str): Attribute key.
            value (str): Attribute value.
        """
        self.attributes[key] = value
def set_attribute ( self , key , value ) : self . attributes [ key ] = value