def __setitem__(self, index, element):
        _validate_element(element)
        element._adjust_parent_root(self, self.root)
        self._children[index] = element
Replaces the given subelement.
dataset/ETHPy150Open flosch/simpleapi/example_project/client/python/sapi/message.py/MessageElement.__setitem__