def assign(value_key: Any, val: Node) -> None:
    assert (val._get_parent() is None)
    v = val
    v._set_parent(self)
    v._set_key(value_key)
    _deep_update_type_hint(node=v, type_hint=self._metadata.element_type)
    self.__dict__['_content'][value_key] = v
def assign(value_key: Any, val: Node) -> None:
    assert (val._get_parent() is None)
    v = val
    v._set_parent(self)
    v._set_key(value_key)
    _deep_update_type_hint(node=v, type_hint=self._metadata.element_type)
    self.__dict__['_content'][value_key] = v