def METHOD_NAME(self, name, qname, attrs):
    self._write(self._qname(name), start_tag=True)
    for prefix, uri in self._undeclared_ns_maps:
        if prefix:
            self._out.write(f' xmlns:{prefix}="{uri}"')
        else:
            self._out.write(f' xmlns="{uri}"')
    self._undeclared_ns_maps = []
    for name, value in list(attrs.items()):
        self._out.write(f" {self._qname(name)}={quoteattr(value)}")