parameters: (self, key, val, attr)
docstring: Sets the node attr to val.
          Should be used only for attr types not directly supported by Snap.
docstring_summary: Sets the node attr to val.
          Should be used only for attr types not directly supported by Snap.
docstring_tokens: Sets the node attr to val . Should be used only for attr types not directly supported by Snap .
function: def _node_extra_attr_setter(self, key, val, attr):
          """Sets the node attr to val.
          Should be used only for attr types not directly supported by Snap."""
          if key not in self._graph:
              raise KeyError
  
          if key not in self._graph._node_extra_attr:
              self._graph._node_extra_attr[key] = {}
          self._graph._node_extra_attr[key][attr] = val
function_tokens: def _node_extra_attr_setter ( self , key , val , attr ) : if key not in self . _graph : raise KeyError if key not in self . _graph . _node_extra_attr : self . _graph . _node_extra_attr [ key ] = { } self . _graph . _node_extra_attr [ key ] [ attr ] = val