code: def setFeature(self, name, state):
      if self.supportsFeature(name):
          state = state and 1 or 0
          try:
              settings = self._settings[(_name_xform(name), state)]
          except KeyError:
              raise xml.dom.NotSupportedErr(
                  "unsupported feature: %r" % (name,)
              ) from None
          else:
              for name, value in settings:
                  setattr(self._options, name, value)
      else:
          raise xml.dom.NotFoundErr("unknown feature: " + repr(name))
  
imports: import copy
  import xml.dom
  from xml.dom.NodeFilter import NodeFilter
label_desc: Use image node_id 8 for calling the DOMBuilder obj's underlying member method code with example usage: obj.setFeature(name, state) without return types